summaryrefslogtreecommitdiff
path: root/src/npc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/npc.cpp')
-rw-r--r--src/npc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/npc.cpp b/src/npc.cpp
index 78670581..8dbbf83c 100644
--- a/src/npc.cpp
+++ b/src/npc.cpp
@@ -21,6 +21,7 @@
#include "animatedsprite.h"
#include "graphics.h"
+#include "localplayer.h"
#include "npc.h"
#include "particle.h"
#include "text.h"
@@ -42,7 +43,7 @@ NPC::NPC(Uint32 id, Uint16 job, Map *map, Network *network):
{
NPCInfo info = NPCDB::get(job);
- //setup NPC sprites
+ // Setup NPC sprites
int c = BASE_SPRITE;
for (std::list<NPCsprite*>::const_iterator i = info.sprites.begin();
i != info.sprites.end();
@@ -75,6 +76,7 @@ NPC::~NPC()
if (mName)
{
delete mName;
+ player_node->setTarget(NULL);
}
}