diff options
author | Sylvain Dupont | 2011-01-29 18:42:33 +0000 |
---|---|---|
committer | Sylvain Dupont | 2011-01-29 18:42:33 +0000 |
commit | 875a840a7a873a8a624bfc94e3c2f3e3a8b7b782 (patch) | |
tree | acd673b95cbc87f7862907b5d278cba01543aef4 | |
parent | 2cc3bd880f778bbec64f4cf080995547302cac5c (diff) | |
download | scummvm-rg350-875a840a7a873a8a624bfc94e3c2f3e3a8b7b782.tar.gz scummvm-rg350-875a840a7a873a8a624bfc94e3c2f3e3a8b7b782.tar.bz2 scummvm-rg350-875a840a7a873a8a624bfc94e3c2f3e3a8b7b782.zip |
TOON: Fixed crash of bug #3166533
Bug #3166533: "TOON: crashes when leaving room"
svn-id: r55621
-rw-r--r-- | engines/toon/script_func.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/toon/script_func.cpp b/engines/toon/script_func.cpp index c2d60eb355..1b909266a6 100644 --- a/engines/toon/script_func.cpp +++ b/engines/toon/script_func.cpp @@ -243,6 +243,7 @@ int32 ScriptFunc::sys_Cmd_Dummy(EMCState *state) { int32 ScriptFunc::sys_Cmd_Change_Actor_X_And_Y(EMCState *state) { _vm->getDrew()->forcePosition(stackPos(0), stackPos(1)); + //_vm->getDrew()->resetScale(); return 0; } @@ -755,7 +756,7 @@ int32 ScriptFunc::sys_Cmd_Query_Speech(EMCState *state) { int32 ScriptFunc::sys_Cmd_Enter_New_Scene(EMCState *state) { _vm->exitScene(); - _vm->getDrew()->setFacing(stackPos(1)); + _vm->getDrew()->forceFacing(stackPos(1)); _vm->loadScene(stackPos(0)); _vm->setSceneAnimationScriptUpdate(false); |