summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-11 13:21:37 -0600
committerIra Rice <irarice@gmail.com>2009-03-11 14:59:53 -0600
commit9935a143cc9c2cd672889965b5db647921cf0210 (patch)
treefef1c120a35b8468a874867b7ca20fd3d659d727 /src/being.h
parent2a6b52f6467bfb4babb2a33205752f58554b651b (diff)
downloadmana-client-9935a143cc9c2cd672889965b5db647921cf0210.tar.gz
mana-client-9935a143cc9c2cd672889965b5db647921cf0210.tar.bz2
mana-client-9935a143cc9c2cd672889965b5db647921cf0210.tar.xz
mana-client-9935a143cc9c2cd672889965b5db647921cf0210.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 63e5e07f..85e0c080 100644
--- a/src/being.h
+++ b/src/being.h
@@ -404,6 +404,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.
@@ -471,7 +475,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 */
};