From 271edea8ec326cb31f749d27575ea806d107beb7 Mon Sep 17 00:00:00 2001 From: collett Date: Tue, 14 Jan 2020 17:37:25 +0900 Subject: [PATCH] fix dots & hots first tick not working --- src/world/StatusEffect/StatusEffect.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/world/StatusEffect/StatusEffect.cpp b/src/world/StatusEffect/StatusEffect.cpp index 4755120a..45683f55 100644 --- a/src/world/StatusEffect/StatusEffect.cpp +++ b/src/world/StatusEffect/StatusEffect.cpp @@ -64,7 +64,6 @@ void Sapphire::StatusEffect::StatusEffect::registerTickEffect( uint8_t type, uin std::pair< uint8_t, uint32_t > Sapphire::StatusEffect::StatusEffect::getTickEffect() { - auto thisTick = m_currTickEffect; auto statusEffectType = static_cast< Common::StatusEffectType >( m_effectEntry.effectType ); if( statusEffectType == Common::StatusEffectType::Dot ) { @@ -90,7 +89,7 @@ std::pair< uint8_t, uint32_t > Sapphire::StatusEffect::StatusEffect::getTickEffe { m_currTickEffect = std::make_pair( 0, 0 ); } - return thisTick; + return m_currTickEffect; } void Sapphire::StatusEffect::StatusEffect::onTick()