minor cleanup

This commit is contained in:
qndel 2020-11-12 14:15:34 +01:00 committed by Anders Jenbo
commit 73dce4fa39
4 changed files with 7 additions and 7 deletions

View file

@ -104,7 +104,7 @@ void GiveGoldCheat()
int i, ni;
for (i = 0; i < NUM_INV_GRID_ELEM; i++) {
if (!plr[myplr].InvGrid[i]) {
if (plr[myplr].InvGrid[i] == 0) {
ni = plr[myplr]._pNumInv++;
SetPlrHandItem(&plr[myplr].InvList[ni], IDI_GOLD);
GetPlrHandSeed(&plr[myplr].InvList[ni]);