From fcb727089413f5f5712703ba979bfa5595e069c9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 30 Dec 2011 00:34:15 +0300 Subject: Fix crash with status effects cleaning with more than one reconnection to server. --- src/statuseffect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 map); +void unloadMap(std::map &map); bool StatusEffect::mLoaded = false; @@ -187,7 +187,7 @@ void StatusEffect::load() mLoaded = true; } -void unloadMap(std::map map) +void unloadMap(std::map &map) { std::map::iterator it; -- cgit v1.2.3-60-g2f50