aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2008-04-18 21:41:55 +0000
committerJohannes Schickel2008-04-18 21:41:55 +0000
commit07ef82c26a1681a1b59af2edf7d2811d533cade9 (patch)
tree0ce6a4da833c77e5652f6784521921b2c62bb434 /engines/kyra
parent0dac6c8f85d1d1666171d4f59ab081f8f1bda1a9 (diff)
downloadscummvm-rg350-07ef82c26a1681a1b59af2edf7d2811d533cade9.tar.gz
scummvm-rg350-07ef82c26a1681a1b59af2edf7d2811d533cade9.tar.bz2
scummvm-rg350-07ef82c26a1681a1b59af2edf7d2811d533cade9.zip
Fixed some valgrind warnings.
svn-id: r31564
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/animator_v3.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/kyra/animator_v3.cpp b/engines/kyra/animator_v3.cpp
index fb4ae2bab6..f9137d4c7e 100644
--- a/engines/kyra/animator_v3.cpp
+++ b/engines/kyra/animator_v3.cpp
@@ -45,6 +45,7 @@ void KyraEngine_v3::clearAnimObjects() {
_animObjects[0].height2 = 10;
for (int i = 1; i < 17; ++i) {
+ _animObjects[i].index = i;
_animObjects[i].type = 2;
_animObjects[i].flags = 0;
_animObjects[i].enabled = false;
@@ -53,6 +54,7 @@ void KyraEngine_v3::clearAnimObjects() {
}
for (int i = 17; i <= 66; ++i) {
+ _animObjects[i].index = i;
_animObjects[i].type = 1;
_animObjects[i].unk8 = 1;
_animObjects[i].flags = 0x800;