aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2004-08-01 07:23:36 +0000
committerEugene Sandulenko2004-08-01 07:23:36 +0000
commitd4c84fefdec61200a0f6eeac4d75fd28f16b9970 (patch)
treec725ff6b8b2fbc69a3905dc4887ea05707505078
parent4b4ab244b1d114fd4740a7dd724924bd42b5a8a3 (diff)
downloadscummvm-rg350-d4c84fefdec61200a0f6eeac4d75fd28f16b9970.tar.gz
scummvm-rg350-d4c84fefdec61200a0f6eeac4d75fd28f16b9970.tar.bz2
scummvm-rg350-d4c84fefdec61200a0f6eeac4d75fd28f16b9970.zip
Initialize Anim object properly.
svn-id: r14409
-rw-r--r--saga/animation.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/saga/animation.cpp b/saga/animation.cpp
index 13bca80b66..0a437a102e 100644
--- a/saga/animation.cpp
+++ b/saga/animation.cpp
@@ -43,8 +43,14 @@ int Anim::reg() {
}
Anim::Anim(void) {
+ int i;
+
_anim_limit = R_MAX_ANIMATIONS;
_anim_count = 0;
+
+ for (i = 0; i < R_MAX_ANIMATIONS; i++)
+ _anim_tbl[i] = NULL;
+
_initialized = true;
}