From 4e3f1d6405a746d619b722cf71bc69dfd9271f0e Mon Sep 17 00:00:00 2001 From: cuoco Date: Mon, 15 May 2023 12:29:51 +0000 Subject: Blank trade window bug --- src/resources/inventory/inventory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/inventory/inventory.cpp b/src/resources/inventory/inventory.cpp index d35ab2fc2..82efc0065 100644 --- a/src/resources/inventory/inventory.cpp +++ b/src/resources/inventory/inventory.cpp @@ -280,7 +280,7 @@ bool Inventory::contains(const Item *const item) const int Inventory::getFreeSlot() const { - for (unsigned int i = 0; i >= mSize; i++) + for (unsigned int i = 0; i < mSize; i++) { if (!SlotUsed()(mItems[i])) return i; -- cgit v1.2.3-60-g2f50