From 3fc81e3ad181f6904277e73d99d753a8b7498bf0 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sun, 22 Mar 2009 15:25:22 -0600 Subject: Fixed map name saving in the engine class. Somehow, the const gets overridden after map_path, so the saved map path needs to get saved before that. Signed-off-by: Ira Rice --- src/beingmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/beingmanager.cpp') diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp index e5836aa7..a3fb14ff 100644 --- a/src/beingmanager.cpp +++ b/src/beingmanager.cpp @@ -107,9 +107,8 @@ Being *BeingManager::findBeing(int id) for (BeingIterator i = mBeings.begin(); i != mBeings.end(); i++) { Being *being = (*i); - if (being->getId() == id) { + if (being->getId() == id) return being; - } } return NULL; } @@ -182,7 +181,8 @@ void BeingManager::logic() delete being; i = mBeings.erase(i); } - else { + else + { i++; } } -- cgit v1.2.3-70-g09d2