aboutsummaryrefslogtreecommitdiff
path: root/kyra
diff options
context:
space:
mode:
Diffstat (limited to 'kyra')
-rw-r--r--kyra/script_v1.cpp2
-rw-r--r--kyra/sprites.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/kyra/script_v1.cpp b/kyra/script_v1.cpp
index 9d2db0ce96..6ed617a0ea 100644
--- a/kyra/script_v1.cpp
+++ b/kyra/script_v1.cpp
@@ -894,7 +894,7 @@ int KyraEngine::cmd_loadSoundFile(ScriptState *script) {
}
int KyraEngine::cmd_displayWSAFrameOnHidPage(ScriptState *script) {
- debug(3, "cmd_displayWSAFrameOnHidPage(0x%X) (%d, %d, %d, %d, %d)", script, stackPos(0), stackPos(1), stackPos(3), stackPos(4));
+ debug(3, "cmd_displayWSAFrameOnHidPage(0x%X) (%d, %d, %d, %d, %d)", script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
int frame = stackPos(0);
int xpos = stackPos(1);
int ypos = stackPos(2);
diff --git a/kyra/sprites.cpp b/kyra/sprites.cpp
index eee22fda23..5f7aa59ac6 100644
--- a/kyra/sprites.cpp
+++ b/kyra/sprites.cpp
@@ -115,6 +115,7 @@ void Sprites::setupSceneAnims() {
bkgdHeight += _anims[i].height2;
_anims[i].background = (uint8 *)malloc(_screen->getRectSize(bkgdWidth + 1, bkgdHeight));
+ memset(_anims[i].background, 0, _screen->getRectSize(bkgdWidth + 1, bkgdHeight));
//_anims[i].background = (uint8 *)malloc(100*100);
assert(_anims[i].background);
}