Merge branch 'master' into Playerbot

This commit is contained in:
郑佩茹
2022-03-22 10:53:26 -06:00
2 changed files with 4 additions and 2 deletions

View File

@@ -2142,7 +2142,8 @@ void GameObject::EventInform(uint32 eventId)
uint32 GameObject::GetScriptId() const
{
if (GameObjectData const* gameObjectData = GetGOData())
return gameObjectData->ScriptId;
if (uint32 scriptId = gameObjectData->ScriptId)
return scriptId;
return GetGOInfo()->ScriptId;
}