aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-21 09:15:04 -0600
committermegamage <none@none>2008-12-21 09:15:04 -0600
commit1bf8d1c50b705d1536fcd9918ecdfe7edfb85a59 (patch)
tree7b9963381d72a80e6052cab921b46fd6b41706da
parent323c97bb3bda6899ae2906098ea34030759d2f01 (diff)
*Fix a bug that causes freeze.
--HG-- branch : trunk
-rw-r--r--src/game/Player.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index e1b24794cac..e9a7a0f73ed 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -16039,7 +16039,10 @@ void Player::ResetInstances(uint8 method)
Map *map = MapManager::Instance().FindMap(p->GetMapId(), p->GetInstanceId());
if(map && map->IsDungeon())
if(!((InstanceMap*)map)->Reset(method))
+ {
+ ++itr;
continue;
+ }
// since this is a solo instance there should not be any players inside
if(method == INSTANCE_RESET_ALL || method == INSTANCE_RESET_CHANGE_DIFFICULTY)