DRACI: Inventory opening after finished callback.

This commit is contained in:
lukaslw 2014-03-11 17:10:11 +01:00
parent b3de0843a9
commit ad842e61da
2 changed files with 3 additions and 1 deletions

View file

@ -1218,7 +1218,7 @@ void Game::walkHero(int x, int y, SightDirection dir) {
} }
// Save point of player's last target. // Save point of player's last target.
if(_loopStatus != kStatusInventory) { if (_loopStatus != kStatusInventory) {
_lastTarget = target; _lastTarget = target;
} }

View file

@ -452,6 +452,8 @@ void WalkingState::callback() {
const GPL2Program &originalCallback = *_callback; const GPL2Program &originalCallback = *_callback;
_callback = NULL; _callback = NULL;
_vm->_script->runWrapper(originalCallback, _callbackOffset, true, false); _vm->_script->runWrapper(originalCallback, _callbackOffset, true, false);
_callbackLast = NULL;
_callbackOffset = NULL;
} }
void WalkingState::callbackLast() { void WalkingState::callbackLast() {