We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d31bce commit 5dc2382Copy full SHA for 5dc2382
src/server/game/Entities/Player/Player.cpp
@@ -7894,7 +7894,9 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type)
7894
// And permit out of range GO with no owner in case fishing hole
7895
if (!go || (loot_type != LOOT_FISHINGHOLE && ((loot_type != LOOT_FISHING && loot_type != LOOT_FISHING_JUNK) || go->GetOwnerGUID() != GetGUID()) && !go->IsWithinDistInMap(this)) || (loot_type == LOOT_CORPSE && go->GetRespawnTime() && go->isSpawnedByDefault()))
7896
{
7897
- go->ForceValuesUpdateAtIndex(GAMEOBJECT_BYTES_1);
+ if (go)
7898
+ go->ForceValuesUpdateAtIndex(GAMEOBJECT_BYTES_1);
7899
+
7900
SendLootRelease(guid);
7901
return;
7902
}
0 commit comments