aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}