warning fixes

This commit is contained in:
Ovahlord committed 2022-09-12 09:15:34 +02:00
1 parent 2b3477fab5
commit 4c28aaebd6
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1033,7 +1033,7 @@ bool CanRollOnItem(const LootItem& item, Player const* player)
return false;
uint32 itemCount = player->GetItemCount(item.itemid);
if (proto->GetMaxCount() > 0 && static_cast<int32>(itemCount) >= proto->GetMaxCount())
if (proto->GetMaxCount() > 0 && itemCount >= proto->GetMaxCount())
return false;
if (!item.AllowedForPlayer(player))