diff options
author | Florian Kagerer | 2009-05-17 15:54:29 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-05-17 15:54:29 +0000 |
commit | 70a7fab1e69932b55b5290b19c48de4756e34d5a (patch) | |
tree | af3e82bcfd19e4a0c3495064cefa6f13fd893a6f /engines | |
parent | b3a50b99fcc2663198f5cf6559eaaa0826d8faa6 (diff) | |
download | scummvm-rg350-70a7fab1e69932b55b5290b19c48de4756e34d5a.tar.gz scummvm-rg350-70a7fab1e69932b55b5290b19c48de4756e34d5a.tar.bz2 scummvm-rg350-70a7fab1e69932b55b5290b19c48de4756e34d5a.zip |
LOL: - fix animations for fletcher shop in the swamp
svn-id: r40655
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/script_tim.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/script_tim.cpp b/engines/kyra/script_tim.cpp index 4d4006f5b9..ce45dc4926 100644 --- a/engines/kyra/script_tim.cpp +++ b/engines/kyra/script_tim.cpp @@ -597,7 +597,8 @@ int TIMInterpreter::cmd_wsaDisplayFrame(const uint16 *param) { Animation &anim = _animations[param[0]]; const int frame = param[1]; int page = (anim.wsaCopyParams & 0x4000) != 0 ? 2 : _drawPage2; - anim.wsa->displayFrame(frame, page, anim.x, anim.y, anim.wsaCopyParams & 0xF0FF, 0, 0); + if (anim.wsa) + anim.wsa->displayFrame(frame, page, anim.x, anim.y, anim.wsaCopyParams & 0xF0FF, 0, 0); if (!page) screen()->updateScreen(); return 1; |