fix: minor optimization

This commit is contained in:
Gozzim
2022-05-31 00:16:12 +02:00
parent 6389cceaea
commit 48219cf358
2 changed files with 2 additions and 6 deletions

View File

@@ -120,12 +120,8 @@ public:
}
auto guid = player->GetGUID();
CharacterCacheEntry const* playerData = sCharacterCache->GetCharacterCacheByGuid(guid);
if (!playerData)
return false;
uint32 accountId = sCharacterCache->GetCharacterAccountIdByGuid(guid);
uint32 itemId = itemTemplate->ItemId;
uint32 accountId = playerData->AccountId;
std::stringstream tempStream;
tempStream << std::hex << ItemQualityColors[itemTemplate->Quality];