summaryrefslogtreecommitdiff
path: root/src/monster.cpp
diff options
context:
space:
mode:
authorLloyd Bryant <lloyd_bryant@netzero.net>2008-08-17 06:28:13 +0000
committerLloyd Bryant <lloyd_bryant@netzero.net>2008-08-17 06:28:13 +0000
commitd5b86aa54dfa4ddf5b5f2361918c719ba8d0dd18 (patch)
treed1eb473d5d703ac37c7ed4cdcfc52e4caca5aa95 /src/monster.cpp
parent68888853bc946a52ca368c5fc859b6709ae0e661 (diff)
downloadmana-client-d5b86aa54dfa4ddf5b5f2361918c719ba8d0dd18.tar.gz
mana-client-d5b86aa54dfa4ddf5b5f2361918c719ba8d0dd18.tar.bz2
mana-client-d5b86aa54dfa4ddf5b5f2361918c719ba8d0dd18.tar.xz
mana-client-d5b86aa54dfa4ddf5b5f2361918c719ba8d0dd18.zip
Fixed crash resulting from having a player targeted when hitting a warp point
Diffstat (limited to 'src/monster.cpp')
-rw-r--r--src/monster.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/monster.cpp b/src/monster.cpp
index 5d62a9cc..e5f9f4b2 100644
--- a/src/monster.cpp
+++ b/src/monster.cpp
@@ -28,7 +28,6 @@
#include "sound.h"
#include "particle.h"
#include "text.h"
-#include "localplayer.h"
#include "gui/gui.h"
@@ -66,12 +65,11 @@ Monster::Monster(Uint32 id, Uint16 job, Map *map):
}
}
-Monster::~Monster()
-{
+Monster::~Monster() {
+
if (mText)
- {
- player_node->setTarget(0);
- }
+ delete mText;
+
}
void