From c26ec70434edea223341eb10cfc0535efa886f1e Mon Sep 17 00:00:00 2001 From: qndel Date: Thu, 12 Sep 2019 11:34:47 +0200 Subject: [PATCH] VerifyGoldSeeds cleanup --- Source/pack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/pack.cpp b/Source/pack.cpp index af1f7d072..948a94244 100644 --- a/Source/pack.cpp +++ b/Source/pack.cpp @@ -111,7 +111,7 @@ void VerifyGoldSeeds(PlayerStruct *pPlayer) int i, j; for (i = 0; i < pPlayer->_pNumInv; i++) { - if (pPlayer->InvList[i].IDidx == IDI_GOLD && pPlayer->_pNumInv > 0) { + if (pPlayer->InvList[i].IDidx == IDI_GOLD) { for (j = 0; j < pPlayer->_pNumInv; j++) { if (i != j) { if (pPlayer->InvList[j].IDidx == IDI_GOLD && pPlayer->InvList[i]._iSeed == pPlayer->InvList[j]._iSeed) {