mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Core/GameObejcts: Fixed disconnects happening when viewing nearby players on elevators
Closes #17335
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user