mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 22:57:45 +00:00
Some more targetId fixes
This commit is contained in:
parent
223e94e9bd
commit
d5bb3c847e
3 changed files with 3 additions and 3 deletions
|
@ -549,7 +549,7 @@ void Sapphire::Entity::BNpc::onActionHostile( Sapphire::Entity::CharaPtr pSource
|
|||
|
||||
void Sapphire::Entity::BNpc::onDeath()
|
||||
{
|
||||
setTargetId( INVALID_GAME_OBJECT_ID );
|
||||
setTargetId( INVALID_GAME_OBJECT_ID64 );
|
||||
m_currentStance = Stance::Passive;
|
||||
m_state = BNpcState::Dead;
|
||||
m_timeOfDeath = Util::getTimeSeconds();
|
||||
|
|
|
@ -37,7 +37,7 @@ using namespace Sapphire::Network::ActorControl;
|
|||
Sapphire::Entity::Chara::Chara( ObjKind type, FrameworkPtr pFw ) :
|
||||
Actor( type ),
|
||||
m_pose( 0 ),
|
||||
m_targetId( INVALID_GAME_OBJECT_ID ),
|
||||
m_targetId( INVALID_GAME_OBJECT_ID64 ),
|
||||
m_pFw( std::move( std::move( pFw ) ) )
|
||||
{
|
||||
// initialize the free slot queue
|
||||
|
|
|
@ -58,7 +58,7 @@ namespace Sapphire::Network::Packets::Server
|
|||
|
||||
m_data.classJob = 0;
|
||||
|
||||
m_data.targetId = Common::INVALID_GAME_OBJECT_ID64;
|
||||
m_data.targetId = bnpc.getTargetId();
|
||||
m_data.spawnerId = Common::INVALID_GAME_OBJECT_ID64;
|
||||
m_data.parentActorId = Common::INVALID_GAME_OBJECT_ID64;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue