From 98820e79e786f3d318a45e0f8e6100841530ff50 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 24 May 2010 02:29:28 +0300 Subject: Show selected target with bold font. Also fix possible memory corruption. Signed-off-by: Jared Adams --- src/beingmanager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/beingmanager.cpp') diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp index a92e3faf..79591ce6 100644 --- a/src/beingmanager.cpp +++ b/src/beingmanager.cpp @@ -182,7 +182,10 @@ void BeingManager::logic() void BeingManager::clear() { if (player_node) + { + player_node->setTarget(0); mBeings.remove(player_node); + } delete_all(mBeings); mBeings.clear(); -- cgit v1.2.3-70-g09d2