Skip to content

Commit

Permalink
DM: Fix possibly dangerous cast in eventman.cpp, moveParty
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendegúz Nagy committed Aug 26, 2016
1 parent 9e3e58a commit 9b772cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engines/dm/eventman.cpp
Expand Up @@ -933,8 +933,7 @@ void EventManager::f366_commandMoveParty(CommandType cmdType) {
L1119_ps_Champion = _vm->_championMan->_gK71_champions;
for (AL1118_ui_ChampionIndex = k0_ChampionFirst; AL1118_ui_ChampionIndex < _vm->_championMan->_g305_partyChampionCount; AL1118_ui_ChampionIndex++) {
if (L1119_ps_Champion->_currHealth) {
warning(false, "possibly dangerous cast to uint16");
AL1115_ui_Ticks = MAX(AL1115_ui_Ticks, (uint16)_vm->_championMan->f310_getMovementTicks(L1119_ps_Champion));
AL1115_ui_Ticks = MAX((int32)AL1115_ui_Ticks, (int32)_vm->_championMan->f310_getMovementTicks(L1119_ps_Champion));
}
L1119_ps_Champion++;
}
Expand Down

0 comments on commit 9b772cf

Please sign in to comment.