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

let global effect counter starts at 1 so the first status in each zone is not ignored by the client

This commit is contained in:
collett 2024-06-12 04:55:55 +09:00
parent beacceec92
commit 5defe73558

View file

@ -62,7 +62,8 @@ Sapphire::Territory::Territory() :
m_weatherOverride( Weather::None ),
m_lastMobUpdate( 0 ),
m_nextEObjId( 0x400D0000 ),
m_nextActorId( 0x500D0000 )
m_nextActorId( 0x500D0000 ),
m_effectCounter( 1 )
{
}
@ -72,7 +73,8 @@ Sapphire::Territory::Territory( uint16_t territoryTypeId, uint32_t guId,
m_nextEObjId( 0x400D0000 ),
m_nextActorId( 0x500D0000 ),
m_lastUpdate( 0 ),
m_lastActivityTime( Util::getTimeMs() )
m_lastActivityTime( Util::getTimeMs() ),
m_effectCounter( 1 )
{
auto& exdData = Common::Service< Data::ExdDataGenerated >::ref();
m_guId = guId;