Core/Items: Add location filters to Player::GetItemByEntry

This commit is contained in:
Shauren
2019-11-29 00:10:29 +01:00
parent 235ec18143
commit 96575e33bb
9 changed files with 79 additions and 37 deletions

View File

@@ -44,7 +44,7 @@ uint32 DB2Meta::GetRecordSize() const
{
for (uint8 j = 0; j < Fields[i].ArraySize; ++j)
{
if (i >= FileFieldCount && i == ParentIndexField)
if (i >= FileFieldCount && int32(i) == ParentIndexField)
{
size += 4;
continue;