summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-11 13:21:37 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-11 13:21:37 -0600
commiteb2b9c4c9cfacd6ec5aae8dae27f0a9389a9205d (patch)
tree29998c311150d8b13c55bb2b0f9e65aa7d2657de /src/being.h
parenta3d675e1dde4c80e687c7264bc86c6189c13dddb (diff)
downloadMana-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.h5
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 */
};