diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-12-30 00:34:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-12-30 00:34:15 +0300 |
commit | fcb727089413f5f5712703ba979bfa5595e069c9 (patch) | |
tree | 5b3deeff1f7f3599bcf0612bf065f351b1eb0f66 | |
parent | cf90c52427fcb50a0ca6d967dbbd6eb30c131481 (diff) | |
download | manaverse-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.
-rw-r--r-- | src/statuseffect.cpp | 4 |
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; |