summaryrefslogtreecommitdiff
path: root/src/beingmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r--src/beingmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp
index c7ed9d86..26672de0 100644
--- a/src/beingmanager.cpp
+++ b/src/beingmanager.cpp
@@ -26,6 +26,8 @@
#include "npc.h"
#include "player.h"
+#include "gui/viewport.h"
+
#include "net/gamehandler.h"
#include "net/net.h"
@@ -102,6 +104,7 @@ Being *BeingManager::createBeing(int id, Being::Type type, int subtype)
void BeingManager::destroyBeing(Being *being)
{
mBeings.remove(being);
+ viewport->clearHoverBeing(being);
delete being;
}