summaryrefslogtreecommitdiff
path: root/src/beingmanager.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-22 15:25:22 -0600
committerIra Rice <irarice@gmail.com>2009-03-22 15:25:22 -0600
commit3fc81e3ad181f6904277e73d99d753a8b7498bf0 (patch)
tree3cbe44fb2b59645d5d58f39b54a2987a2a29808f /src/beingmanager.cpp
parent347452b9b69ef3af29c577b7751082822e900c01 (diff)
downloadmana-3fc81e3ad181f6904277e73d99d753a8b7498bf0.tar.gz
mana-3fc81e3ad181f6904277e73d99d753a8b7498bf0.tar.bz2
mana-3fc81e3ad181f6904277e73d99d753a8b7498bf0.tar.xz
mana-3fc81e3ad181f6904277e73d99d753a8b7498bf0.zip
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 <irarice@gmail.com>
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r--src/beingmanager.cpp6
1 files changed, 3 insertions, 3 deletions
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++;
}
}