diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-03-12 22:36:18 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-03-12 23:53:55 -0700 |
commit | f80e8769ff5c78255bd5e09a991ada83b7ed1aa2 (patch) | |
tree | a104ffd960173e7232a70a5d78b4551751ad303c /src/beingmanager.cpp | |
parent | ef3685ef63999b7132fa7b6f8ebc9a3387972e53 (diff) | |
download | mana-f80e8769ff5c78255bd5e09a991ada83b7ed1aa2.tar.gz mana-f80e8769ff5c78255bd5e09a991ada83b7ed1aa2.tar.bz2 mana-f80e8769ff5c78255bd5e09a991ada83b7ed1aa2.tar.xz mana-f80e8769ff5c78255bd5e09a991ada83b7ed1aa2.zip |
Fix some issues with Being deletion
Clear the Viewport's hover being when it gets removed and make sure
LocalPlayer's target pointer get's cleared.
Reviewed-by: Freeyorp
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r-- | src/beingmanager.cpp | 3 |
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; } |