DM: Fix compilation on GCC

This commit is contained in:
Strangerke 2016-06-23 23:12:39 +02:00 committed by Bendegúz Nagy
parent fab0510936
commit 45461a4908
9 changed files with 28 additions and 27 deletions

View file

@ -499,7 +499,7 @@ void EventManager::commandSetLeader(ChampionIndex champIndex) {
Champion *champion = &cm._champions[cm._leaderIndex];
champion->_dir = _vm->_dungeonMan->_currMap._partyDir;
cm._champions[champIndex]._load += _vm->_dungeonMan->getObjectWeight(cm._leaderHand);
if (indexToOrdinal(champIndex) != cm._candidateChampionOrdinal) {
if (_vm->indexToOrdinal(champIndex) != cm._candidateChampionOrdinal) {
champion->setAttributeFlag(kChampionAttributeIcon, true);
champion->setAttributeFlag(kChampionAttributeNameTitle, true);
cm.drawChampionState(champIndex);