From 4ecc2090d9eeef090cce9f13ce4685ca129f04a2 Mon Sep 17 00:00:00 2001 From: qndel Date: Tue, 31 Mar 2020 11:59:43 +0200 Subject: [PATCH] [hellfire] S_StartWSell bin exact --- Source/stores.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/stores.cpp b/Source/stores.cpp index 482af458b..1668b4b7f 100644 --- a/Source/stores.cpp +++ b/Source/stores.cpp @@ -957,6 +957,10 @@ void S_StartWSell() storehold[i]._itype = ITYPE_NONE; for (i = 0; i < plr[myplr]._pNumInv; i++) { +#ifdef HELLFIRE + if (storenumh >= 48) + break; +#endif if (WitchSellOk(i)) { sellok = TRUE; storehold[storenumh] = plr[myplr].InvList[i]; @@ -973,6 +977,10 @@ void S_StartWSell() } for (i = 0; i < MAXBELTITEMS; i++) { +#ifdef HELLFIRE + if (storenumh >= 48) + break; +#endif if (plr[myplr].SpdList[i]._itype != ITYPE_NONE && WitchSellOk(-(i + 1))) { sellok = TRUE; storehold[storenumh] = plr[myplr].SpdList[i];