Core/GameObejcts: Fixed disconnects happening when viewing nearby players on elevators

Closes #17335
This commit is contained in:
Shauren
2016-06-12 00:11:00 +02:00
parent f583476f9a
commit c529566ac4
21 changed files with 72 additions and 61 deletions

View File

@@ -322,14 +322,12 @@ void Map::ScriptsProcess()
source = HashMapHolder<Player>::Find(step.sourceGUID);
break;
case HighGuid::GameObject:
case HighGuid::Transport:
source = GetGameObject(step.sourceGUID);
break;
case HighGuid::Corpse:
source = GetCorpse(step.sourceGUID);
break;
case HighGuid::Transport:
source = GetTransport(step.sourceGUID);
break;
default:
TC_LOG_ERROR("scripts", "%s source with unsupported high guid %s.",
step.script->GetDebugInfo().c_str(), step.sourceGUID.ToString().c_str());
@@ -353,14 +351,12 @@ void Map::ScriptsProcess()
target = HashMapHolder<Player>::Find(step.targetGUID);
break;
case HighGuid::GameObject:
case HighGuid::Transport:
target = GetGameObject(step.targetGUID);
break;
case HighGuid::Corpse:
target = GetCorpse(step.targetGUID);
break;
case HighGuid::Transport:
target = GetTransport(step.targetGUID);
break;
default:
TC_LOG_ERROR("scripts", "%s target with unsupported high guid %s.",
step.script->GetDebugInfo().c_str(), step.targetGUID.ToString().c_str());