summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-09-23 23:47:32 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-09-23 23:47:32 +0000
commit7ca971f04907031b80ffbcb159e5af2f595e3af8 (patch)
treec7f0f210325acb35f63071797407d266ba7e9e35 /src/being.cpp
parentc3d7827d18b725d2dff94e08a17474d607bb43dd (diff)
downloadmana-7ca971f04907031b80ffbcb159e5af2f595e3af8.tar.gz
mana-7ca971f04907031b80ffbcb159e5af2f595e3af8.tar.bz2
mana-7ca971f04907031b80ffbcb159e5af2f595e3af8.tar.xz
mana-7ca971f04907031b80ffbcb159e5af2f595e3af8.zip
Merged most of the changes in biggeruniverse's second memory cleanup patch.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index ee9ff117..59284787 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -40,6 +40,7 @@
#include "net/protocol.h"
#include "resources/resourcemanager.h"
+#include "resources/image.h"
extern Being* autoTarget;
extern std::map<int, Spriteset*> monsterset;
@@ -86,6 +87,7 @@ Being* createBeing(unsigned int id, unsigned short job, Map *map)
logger->error("Unable to load monster.png");
} else {
monsterset[being->job - 1002] = new Spriteset(monsterbitmap, 60, 60);
+ monsterbitmap->decRef();
}
}