diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp index 7893c97d..96bce027 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -135,6 +135,9 @@ Being::~Being() delete_all(mSprites); clearPath(); + if (player_node->getTarget() == this) + player_node->setTarget(NULL); + setMap(NULL); instances--; |