From 48046fd10c61a0fdbd4416058cd7193cf3a837f5 Mon Sep 17 00:00:00 2001 From: Mordred Date: Tue, 7 Dec 2021 00:51:09 +0100 Subject: [PATCH] HuntingLog fix --- src/world/Actor/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/Actor/Player.cpp b/src/world/Actor/Player.cpp index 9b347781..5221115f 100644 --- a/src/world/Actor/Player.cpp +++ b/src/world/Actor/Player.cpp @@ -1998,14 +1998,14 @@ void Sapphire::Entity::Player::updateHuntingLog( uint16_t id ) for( auto x = 0; x < 4; ++x ) { auto note1 = pExdData.getRow< Component::Excel::MonsterNoteTarget >( note->data().Target[ x ] ); - if( note1->data().Monster == id && logEntry.entries[ i - 1 ][ x ] < note->data().Target[ x ] ) + if( note1->data().Monster == id && logEntry.entries[ i - 1 ][ x ] < note->data().NeededKills[ x ] ) { logEntry.entries[ i - 1 ][ x ]++; queuePacket( makeActorControlSelf( getId(), HuntingLogEntryUpdate, monsterNoteId, x, logEntry.entries[ i - 1 ][ x ] ) ); logChanged = true; sectionChanged = true; } - if( logEntry.entries[ i - 1 ][ x ] != note->data().Target[ x ] ) + if( logEntry.entries[ i - 1 ][ x ] != note->data().NeededKills[ x ] ) sectionComplete = false; } if( logChanged && sectionComplete && sectionChanged )