1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-02 16:57:47 +00:00

Merge pull request #335 from goaaats/targetid_fix

Correctly initialize m_targetId in Chara
This commit is contained in:
Mordred 2018-07-07 14:35:56 +02:00 committed by GitHub
commit 2364e53f48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,8 @@ using namespace Core::Network::Packets::Server;
using namespace Core::Network::ActorControl;
Core::Entity::Chara::Chara( ObjKind type ) :
Actor( type )
Actor( type ),
m_targetId( INVALID_GAME_OBJECT_ID )
{
// initialize the free slot queue
for( uint8_t i = 0; i < MAX_STATUS_EFFECTS; i++ )