From cfa81f0df51a283c8590abeddcd7958c5b36cf21 Mon Sep 17 00:00:00 2001 From: Kooper Date: Sat, 19 Jul 2025 19:44:27 +0200 Subject: [PATCH] Code compiles now... --- src/world/Actor/BNpc.cpp | 4 ++-- src/world/Actor/BNpc.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/world/Actor/BNpc.cpp b/src/world/Actor/BNpc.cpp index 481c52b5..26313ac3 100644 --- a/src/world/Actor/BNpc.cpp +++ b/src/world/Actor/BNpc.cpp @@ -449,7 +449,7 @@ void BNpc::hateListClear() if( isInRangeSet( listEntry->m_pChara ) ) { if( listEntry->m_pChara->isPlayer() ) - notifyPlayerDeaggro( listEntry->m_pChara ) + BNpc::notifyPlayerDeaggro( listEntry->m_pChara ); } } m_hateList.clear(); @@ -630,7 +630,7 @@ void BNpc::deaggro( const CharaPtr& pChara ) hateListRemove( pChara ); if( pChara->isPlayer() ) - notifyPlayerDeaggro(pChara) + notifyPlayerDeaggro( pChara ); } void BNpc::notifyPlayerDeaggro(const CharaPtr& pChara) diff --git a/src/world/Actor/BNpc.h b/src/world/Actor/BNpc.h index 7076ae6e..f07062fc 100644 --- a/src/world/Actor/BNpc.h +++ b/src/world/Actor/BNpc.h @@ -115,6 +115,7 @@ namespace Sapphire::Entity void aggro( const CharaPtr& pChara ); void deaggro( const CharaPtr& pChara ); + void notifyPlayerDeaggro( const CharaPtr& pChara ); void update( uint64_t tickCount ) override; void onTick() override;