From 9935a143cc9c2cd672889965b5db647921cf0210 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 11 Mar 2009 13:21:37 -0600 Subject: Fix segfault when being count reaches 0 too often --- src/being.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/being.h') 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 emotionSet; /**< Emoticons used by beings */ }; -- cgit v1.2.3-60-g2f50