diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2009-12-06 18:58:50 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2009-12-06 19:00:24 +0100 |
commit | 232792634184759eec072782be875cb0f31b7247 (patch) | |
tree | 9c3bf65f3429d37d88247343ab82d6ff68a8cfd3 /src/game-server/character.cpp | |
parent | c0a5b22aa8f90c3d5de4a4b7495cf157d9a189d1 (diff) | |
download | manaserv-232792634184759eec072782be875cb0f31b7247.tar.gz manaserv-232792634184759eec072782be875cb0f31b7247.tar.bz2 manaserv-232792634184759eec072782be875cb0f31b7247.tar.xz manaserv-232792634184759eec072782be875cb0f31b7247.zip |
Fixed crash when an invalid status effect is requested
Log an error instead.
Diffstat (limited to 'src/game-server/character.cpp')
-rw-r--r-- | src/game-server/character.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp index f351edb3..99a6bcfd 100644 --- a/src/game-server/character.cpp +++ b/src/game-server/character.cpp @@ -126,7 +126,7 @@ void Character::update() mStatusEffects.clear(); StatusEffects::iterator it = mStatus.begin(); - while(it != mStatus.end()) + while (it != mStatus.end()) { mStatusEffects[it->first] = it->second.time; it++; |