fix(Core): ScriptName not readable in creature and gameobject table fix (#8715)
This commit is contained in:
parent
dc3ff71c70
commit
bcd1a701ac
7 changed files with 45 additions and 15 deletions
|
|
@ -2090,6 +2090,14 @@ void GameObject::EventInform(uint32 eventId)
|
|||
m_zoneScript->ProcessEvent(this, eventId);
|
||||
}
|
||||
|
||||
uint32 GameObject::GetScriptId() const
|
||||
{
|
||||
if (GameObjectData const* gameObjectData = GetGOData())
|
||||
return gameObjectData->ScriptId;
|
||||
|
||||
return GetGOInfo()->ScriptId;
|
||||
}
|
||||
|
||||
// overwrite WorldObject function for proper name localization
|
||||
std::string const& GameObject::GetNameForLocaleIdx(LocaleConstant loc_idx) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue