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/gui/viewport.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/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 1451b935..9befac9d 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -509,3 +509,9 @@ void Viewport::hideBeingPopup() { mBeingPopup->setVisible(false); } + +void Viewport::clearHoverBeing(Being *being) +{ + if (mHoverBeing == being) + mHoverBeing = 0; +} |