Browse Source

🐛 Fix check in HasRoomForGold

pull/1223/head
Anders Jenbo 5 years ago
parent
commit
a46c522882
  1. 2
      SourceX/qol.cpp

2
SourceX/qol.cpp

@ -179,7 +179,7 @@ bool HasRoomForGold()
{
for (int i = 0; i < NUM_INV_GRID_ELEM; i++) {
int idx = plr[myplr].InvGrid[i];
if (idx == 0 || (plr[myplr].InvList[idx]._itype == ITYPE_GOLD && plr[myplr].InvList[idx]._ivalue < MaxGold)) {
if (idx == 0 || (idx > 0 && plr[myplr].InvList[idx]._itype == ITYPE_GOLD && plr[myplr].InvList[idx]._ivalue < MaxGold)) {
return true;
}
}

Loading…
Cancel
Save