diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-16 18:26:35 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-16 18:26:35 -0700 |
commit | fb0626ebec688dfd1b4fe4d8c324c2f7b34fada2 (patch) | |
tree | afcf3c4dd7d8d9a76f2865a0fa2296d00bcc350d /src/monster.cpp | |
parent | a739b7d2936bc1074edc4703bd06605162efd166 (diff) | |
download | mana-fb0626ebec688dfd1b4fe4d8c324c2f7b34fada2.tar.gz mana-fb0626ebec688dfd1b4fe4d8c324c2f7b34fada2.tar.bz2 mana-fb0626ebec688dfd1b4fe4d8c324c2f7b34fada2.tar.xz mana-fb0626ebec688dfd1b4fe4d8c324c2f7b34fada2.zip |
Moved target unsetting on NPCs and monsters to the being class. This is
done to ensure that the client doesn't crash if the target dies and is
removed from the map (since target drawing is based off of the specific
target reporting its x and y coordinates).
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/monster.cpp')
-rw-r--r-- | src/monster.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/monster.cpp b/src/monster.cpp index cc529196..f5687ef6 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -77,11 +77,7 @@ Monster::Monster(Uint32 id, Uint16 job, Map *map): Monster::~Monster() { - if (mText) - { - delete mText; - player_node->setTarget(NULL); - } + delete mText; } void Monster::logic() |