mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Fix static analysis issues
(cherry picked from commit 486b032343)
This commit is contained in:
@@ -202,13 +202,12 @@ namespace VMAP
|
||||
return false;
|
||||
}
|
||||
printf("Read coordinate mapping...\n");
|
||||
uint32 mapID, check=0;
|
||||
uint32 mapID, check;
|
||||
std::map<uint32, MapSpawns> data;
|
||||
while (!feof(dirf))
|
||||
{
|
||||
check = 0;
|
||||
// read mapID, Flags, NameSet, UniqueId, Pos, Rot, Scale, Bound_lo, Bound_hi, name
|
||||
check += fread(&mapID, sizeof(uint32), 1, dirf);
|
||||
check = fread(&mapID, sizeof(uint32), 1, dirf);
|
||||
if (check == 0) // EoF...
|
||||
break;
|
||||
|
||||
|
||||
@@ -12817,7 +12817,7 @@ void Player::DestroyItem(uint8 bag, uint8 slot, bool update)
|
||||
if (slot < INVENTORY_SLOT_BAG_END)
|
||||
{
|
||||
// item set bonuses applied only at equip and removed at unequip, and still active for broken items
|
||||
if (pProto && pProto->GetItemSet())
|
||||
if (pProto->GetItemSet())
|
||||
RemoveItemsSetItem(this, pProto);
|
||||
|
||||
_ApplyItemMods(pItem, slot, false);
|
||||
|
||||
Reference in New Issue
Block a user