From 4d5e76d4be588397053702b11c70901453bd8fd9 Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Fri, 19 Mar 2010 19:39:04 -0400 Subject: Fix crash when player chooses to follow a being that has been deleted already Reviewed-By: Jarad Adams --- src/gui/popupmenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 7e4bfd65..9052e9d2 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -261,9 +261,9 @@ void PopupMenu::handleLink(const std::string &link) { player_node->inviteToGuild(being); } - + // Follow Player action - else if (link == "follow") + else if (link == "follow" && being) { player_node->setFollow(being->getName()); } -- cgit v1.2.3-70-g09d2