@ -224,7 +224,8 @@ bool PlayerStruct::HasItem(int item, int *idx) const
{
for (int i = 0; i < _pNumInv; i++) {
if (InvList[i].IDidx == item) {
*idx = i;
if (idx != nullptr)
return true;
}