fix(gobject): elevator bug + prevent bugs related to faction and flags (#1402)

- Closes #1396
This commit is contained in:
Francesco Borzì
2019-02-02 14:34:50 +01:00
committed by GitHub
parent 002f24aadb
commit 264dd0c65a
3 changed files with 6 additions and 5 deletions

View File

@@ -700,8 +700,11 @@ bool StaticTransport::Create(uint32 guidlow, uint32 name_id, Map* map, uint32 ph
SetObjectScale(goinfo->size);
SetUInt32Value(GAMEOBJECT_FACTION, goinfo->faction);
SetUInt32Value(GAMEOBJECT_FLAGS, goinfo->flags);
if (GameObjectTemplateAddon const* addon = GetTemplateAddon())
{
SetUInt32Value(GAMEOBJECT_FACTION, addon->faction);
SetUInt32Value(GAMEOBJECT_FLAGS, addon->flags);
}
SetEntry(goinfo->entry);
SetName(goinfo->name);