summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-30 00:34:15 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-30 00:34:15 +0300
commitfcb727089413f5f5712703ba979bfa5595e069c9 (patch)
tree5b3deeff1f7f3599bcf0612bf065f351b1eb0f66 /src
parentcf90c52427fcb50a0ca6d967dbbd6eb30c131481 (diff)
downloadManaVerse-fcb727089413f5f5712703ba979bfa5595e069c9.tar.gz
ManaVerse-fcb727089413f5f5712703ba979bfa5595e069c9.tar.bz2
ManaVerse-fcb727089413f5f5712703ba979bfa5595e069c9.tar.xz
ManaVerse-fcb727089413f5f5712703ba979bfa5595e069c9.zip
Fix crash with status effects cleaning with more than one reconnection to server.
Diffstat (limited to 'src')
-rw-r--r--src/statuseffect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp
index f7bffc31f..08309829d 100644
--- a/src/statuseffect.cpp
+++ b/src/statuseffect.cpp
@@ -37,7 +37,7 @@
#define STATUS_EFFECTS_FILE "status-effects.xml"
-void unloadMap(std::map<int, StatusEffect *> map);
+void unloadMap(std::map<int, StatusEffect *> &map);
bool StatusEffect::mLoaded = false;
@@ -187,7 +187,7 @@ void StatusEffect::load()
mLoaded = true;
}
-void unloadMap(std::map<int, StatusEffect *> map)
+void unloadMap(std::map<int, StatusEffect *> &map)
{
std::map<int, StatusEffect *>::iterator it;