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:
parent
6bd8dee22d
commit
fd768eb18f
1 changed files with 1 additions and 0 deletions
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue