Core/Misc: Fix static analysis issues

(cherry picked from commit 486b032343)
This commit is contained in:
jackpoz
2017-04-25 17:33:53 +02:00
committed by funjoker
parent cc148ebc40
commit 49f25f6e33
2 changed files with 3 additions and 4 deletions

View File

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

View File

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