diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-11 13:21:37 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-11 13:21:37 -0600 |
commit | eb2b9c4c9cfacd6ec5aae8dae27f0a9389a9205d (patch) | |
tree | 29998c311150d8b13c55bb2b0f9e65aa7d2657de /src/being.h | |
parent | a3d675e1dde4c80e687c7264bc86c6189c13dddb (diff) | |
download | mana-eb2b9c4c9cfacd6ec5aae8dae27f0a9389a9205d.tar.gz mana-eb2b9c4c9cfacd6ec5aae8dae27f0a9389a9205d.tar.bz2 mana-eb2b9c4c9cfacd6ec5aae8dae27f0a9389a9205d.tar.xz mana-eb2b9c4c9cfacd6ec5aae8dae27f0a9389a9205d.zip |
Fix segfault when being count reaches 0 too often
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/being.h b/src/being.h index 3f753fcf..1987d5b8 100644 --- a/src/being.h +++ b/src/being.h @@ -445,6 +445,10 @@ class Being : public Sprite virtual AnimatedSprite* getSprite(int index) const { return mSprites[index]; } + static void load(); + + static void cleanup(); + protected: /** * Sets the new path for this being. @@ -533,7 +537,6 @@ class Being : public Sprite // Target cursor being used SimpleAnimation* mUsedTargetCursor; - static int instances; /**< Number of Being instances */ static std::vector<AnimatedSprite*> emotionSet; /**< Emoticons used by beings */ }; |