1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 15:17:46 +00:00

fix crash on bnpc fsm nullptr;

This commit is contained in:
Alice Ogeda 2023-03-24 12:00:42 -03:00 committed by Tahir
parent 6bd8dee22d
commit fd768eb18f

View file

@ -24,6 +24,7 @@ namespace Sapphire
// todo: i don't like this // todo: i don't like this
auto boss = m_pInstance->createBNpcFromLayoutId( NPC_IFRIT, VAL_IFRIT_HP, Common::BNpcType::Enemy ); auto boss = m_pInstance->createBNpcFromLayoutId( NPC_IFRIT, VAL_IFRIT_HP, Common::BNpcType::Enemy );
boss->init();
addBNpc( boss ); addBNpc( boss );
} }