From 5defe7355886baa1bb304794d1e9aaad00c95734 Mon Sep 17 00:00:00 2001 From: collett Date: Wed, 12 Jun 2024 04:55:55 +0900 Subject: [PATCH] let global effect counter starts at 1 so the first status in each zone is not ignored by the client --- src/world/Territory/Territory.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/world/Territory/Territory.cpp b/src/world/Territory/Territory.cpp index c7fdb724..2454e4cb 100644 --- a/src/world/Territory/Territory.cpp +++ b/src/world/Territory/Territory.cpp @@ -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;