1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-03 09:17:47 +00:00

Missed a zone conversion

This commit is contained in:
Mordred 2023-01-17 08:29:07 +01:00
parent 8af39dfeb8
commit 436c04993f

View file

@ -803,7 +803,7 @@ void Territory::updateSpawnPoints()
{
if( !spawn.bnpcPtr && ( Common::Util::getTimeSeconds() - spawn.timeOfDeath ) > spawn.infoPtr->PopInterval )
{
auto pBNpc = std::make_shared< Entity::BNpc >( getNextActorId(), spawn.infoPtr, shared_from_this() );
auto pBNpc = std::make_shared< Entity::BNpc >( getNextActorId(), spawn.infoPtr, *this );
pBNpc->init();
spawn.bnpcPtr = pBNpc;