summaryrefslogtreecommitdiff
path: root/src/simpleanimation.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-07-23 13:46:09 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-07-23 16:02:04 +0200
commit0875b7ecb46f93e408a560f0033da392f0a4d3b2 (patch)
treee81ae8a3d4dcdfc65c2e2799b2a5bafddbba207b /src/simpleanimation.h
parentd562e188873276cc6b53ac3aa508ac1ef0f33527 (diff)
downloadmana-0875b7ecb46f93e408a560f0033da392f0a4d3b2.tar.gz
mana-0875b7ecb46f93e408a560f0033da392f0a4d3b2.tar.bz2
mana-0875b7ecb46f93e408a560f0033da392f0a4d3b2.tar.xz
mana-0875b7ecb46f93e408a560f0033da392f0a4d3b2.zip
Added simple sanity checks for missing animation in maps.
Fixes a bunch of crash courses for me. Reviewed-by: Freeyorp
Diffstat (limited to 'src/simpleanimation.h')
-rw-r--r--src/simpleanimation.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/simpleanimation.h b/src/simpleanimation.h
index a8a43b33..e679442e 100644
--- a/src/simpleanimation.h
+++ b/src/simpleanimation.h
@@ -78,6 +78,9 @@ class SimpleAnimation
/** Current animation phase. */
Frame *mCurrentFrame;
+
+ /** Tell whether the animation is ready */
+ bool mInitialized;
};
#endif