aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Maps/Map.cpp
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2016-09-21 15:36:21 +0200
committertreeston <treeston.mmoc@gmail.com>2016-09-21 15:36:21 +0200
commit820e8433917fe27c4a1093482532c6986b519e1f (patch)
tree779efcb16dec9c6a8fd7ea3256403fb5667c7e05 /src/server/game/Maps/Map.cpp
parent9804bb252ae9cb11cfb56ce7e12466bc7722b2e5 (diff)
Map/InstanceMap: Ease up on a somewhat overzealous error message regarding instance saves.
Diffstat (limited to 'src/server/game/Maps/Map.cpp')
-rw-r--r--src/server/game/Maps/Map.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp
index 6285d847db3..177691c7f6d 100644
--- a/src/server/game/Maps/Map.cpp
+++ b/src/server/game/Maps/Map.cpp
@@ -3334,7 +3334,14 @@ void InstanceMap::PermBindAllPlayers()
InstancePlayerBind* bind = player->GetBoundInstance(save->GetMapId(), save->GetDifficulty());
if (bind && bind->perm)
{
- TC_LOG_ERROR("maps", "Player (GUID: %u, Name: %s) is in instance map (Name: %s, Entry: %u, Difficulty: %u, ID: %u) that is being bound, but already has a save for the map on ID %u!", player->GetGUID().GetCounter(), player->GetName().c_str(), GetMapName(), GetId(), GetDifficulty(), GetInstanceId(), save->GetInstanceId());
+ if (bind->save && bind->save->GetInstanceId() != save->GetInstanceId())
+ {
+ TC_LOG_ERROR("maps", "Player (GUID: %u, Name: %s) is in instance map (Name: %s, Entry: %u, Difficulty: %u, ID: %u) that is being bound, but already has a save for the map on ID %u!", player->GetGUID().GetCounter(), player->GetName().c_str(), GetMapName(), save->GetMapId(), save->GetDifficulty(), save->GetInstanceId(), bind->save->GetInstanceId());
+ }
+ else if (!bind->save)
+ {
+ TC_LOG_ERROR("maps", "Player (GUID: %u, Name: %s) is in instance map (Name: %s, Entry: %u, Difficulty: %u, ID: %u) that is being bound, but already has a bind (without associated save) for the map!", player->GetGUID().GetCounter(), player->GetName().c_str(), GetMapName(), save->GetMapId(), save->GetDifficulty(), save->GetInstanceId());
+ }
}
else
{