From f80e8769ff5c78255bd5e09a991ada83b7ed1aa2 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 12 Mar 2010 22:36:18 -0700 Subject: 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 --- src/gui/viewport.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/viewport.h') diff --git a/src/gui/viewport.h b/src/gui/viewport.h index e4944cd6..e67cc6d3 100644 --- a/src/gui/viewport.h +++ b/src/gui/viewport.h @@ -22,6 +22,7 @@ #ifndef VIEWPORT_H #define VIEWPORT_H +#include "beingmanager.h" #include "configlistener.h" #include "position.h" @@ -157,6 +158,12 @@ class Viewport : public WindowContainer, public gcn::MouseListener, */ void hideBeingPopup(); + protected: + friend class BeingManager; + + /// Clears the hovered being if it matches + void clearHoverBeing(Being *being); + private: /** * Finds a path from the player to the mouse, and draws it. This is for -- cgit v1.2.3-70-g09d2