summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 2ff96c81..5583b8c2 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -864,7 +864,10 @@ void Being::logic()
if (!isAlive() && Net::getGameHandler()->removeDeadBeings() &&
(int) ((get_elapsed_time(mActionTime)
/ getWalkSpeed().x) >= frameCount))
- actorSpriteManager->destroy(this);
+ {
+ if (getType() != PLAYER)
+ actorSpriteManager->destroy(this);
+ }
}
void Being::drawEmotion(Graphics *graphics, int offsetX, int offsetY)