Added missing GameObjectModel::iLosBlockingDisabled initialization in constructor

Port From (https://github.com/TrinityCore/TrinityCore/commit/b3763c338d9c1b007b76b0ca94c069bcfbbd8801)
This commit is contained in:
Hondacrx
2024-09-01 16:23:25 -04:00
parent b38508cba7
commit 03e2904f0d
4 changed files with 37 additions and 7 deletions
@@ -3885,8 +3885,14 @@ namespace Game.Entities
public void CreateModel()
{
m_model = GameObjectModel.Create(new GameObjectModelOwnerImpl(this));
if (m_model != null && m_model.IsMapObject())
SetFlag(GameObjectFlags.MapObject);
if (m_model != null)
{
if (m_model.IsMapObject())
SetFlag(GameObjectFlags.MapObject);
if (GetGoType() == GameObjectTypes.Door)
m_model.DisableLosBlocking(GetGoInfo().Door.NotLOSBlocking != 0);
}
}
// There's many places not ready for dynamic spawns. This allows them to live on for now.