Browse Source

Remove crashing feature from PlayerStruct::HasItem

pull/1906/head
thebigMuh 5 years ago committed by Anders Jenbo
parent
commit
15ec16af7e
  1. 3
      Source/player.cpp

3
Source/player.cpp

@ -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)
*idx = i;
return true;
}
}

Loading…
Cancel
Save