From 197d846a855cbba6dd75d4d823b0728be2b7f7bf Mon Sep 17 00:00:00 2001 From: Mordred <30826167+SapphireMordred@users.noreply.github.com> Date: Mon, 17 Sep 2018 08:41:09 +0200 Subject: [PATCH] Fixed discovery information not being used correctly. --- src/servers/sapphire_zone/Actor/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/sapphire_zone/Actor/Player.cpp b/src/servers/sapphire_zone/Actor/Player.cpp index 1747f4db..6a7c42a0 100644 --- a/src/servers/sapphire_zone/Actor/Player.cpp +++ b/src/servers/sapphire_zone/Actor/Player.cpp @@ -534,9 +534,9 @@ void Core::Entity::Player::discover( int16_t map_id, int16_t sub_id ) auto info = pExdData->get< Core::Data::Map >( pExdData->get< Core::Data::TerritoryType >( getCurrentZone()->getTerritoryId() )->map ); if( info->discoveryArrayByte ) - offset = 4 + 2 * info->discoveryIndex; + offset = 5 + 2 * info->discoveryIndex; else - offset = 324 + 4 * info->discoveryIndex; + offset = 325 + 4 * info->discoveryIndex; int32_t index = offset + sub_id / 8; uint8_t bitIndex = sub_id % 8;