fix(Core/GameObjects): Creating gameobject's model requires set go state. (#5188)
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617863055133088000');
|
||||||
|
|
||||||
|
UPDATE `gameobject` SET `phaseMask`=1|2|16|32|64|128 WHERE `id` BETWEEN 192028 AND 192033;
|
||||||
@@ -298,15 +298,16 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map* map, uint32 phaseMa
|
|||||||
// set name for logs usage, doesn't affect anything ingame
|
// set name for logs usage, doesn't affect anything ingame
|
||||||
SetName(goinfo->name);
|
SetName(goinfo->name);
|
||||||
|
|
||||||
SetDisplayId(goinfo->displayId);
|
|
||||||
|
|
||||||
if (!m_model)
|
|
||||||
m_model = GameObjectModel::Create(*this);
|
|
||||||
// GAMEOBJECT_BYTES_1, index at 0, 1, 2 and 3
|
// GAMEOBJECT_BYTES_1, index at 0, 1, 2 and 3
|
||||||
SetGoType(GameobjectTypes(goinfo->type));
|
SetGoType(GameobjectTypes(goinfo->type));
|
||||||
SetGoState(go_state);
|
SetGoState(go_state);
|
||||||
SetGoArtKit(artKit);
|
SetGoArtKit(artKit);
|
||||||
|
|
||||||
|
SetDisplayId(goinfo->displayId);
|
||||||
|
|
||||||
|
if (!m_model)
|
||||||
|
m_model = GameObjectModel::Create(*this);
|
||||||
|
|
||||||
switch (goinfo->type)
|
switch (goinfo->type)
|
||||||
{
|
{
|
||||||
case GAMEOBJECT_TYPE_FISHINGHOLE:
|
case GAMEOBJECT_TYPE_FISHINGHOLE:
|
||||||
|
|||||||
Reference in New Issue
Block a user