1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 22:57:45 +00:00

Fixed discovery information not being used correctly.

This commit is contained in:
Mordred 2018-09-17 08:41:09 +02:00 committed by GitHub
parent 0b97f8e68c
commit 197d846a85

View file

@ -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;