Merge branch 'master' into Playerbot
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user