summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcuoco <atunna2026@gmail.com>2023-05-15 12:29:51 +0000
committercuoco <atunna2026@gmail.com>2023-05-15 12:29:51 +0000
commit4e3f1d6405a746d619b722cf71bc69dfd9271f0e (patch)
treee3fde64483a9944e671ebb18bfac6f9d48998979
parent279c7ba28804960ae3b2ec0753b4c3a92d5a6ede (diff)
downloadmv-4e3f1d6405a746d619b722cf71bc69dfd9271f0e.tar.gz
mv-4e3f1d6405a746d619b722cf71bc69dfd9271f0e.tar.bz2
mv-4e3f1d6405a746d619b722cf71bc69dfd9271f0e.tar.xz
mv-4e3f1d6405a746d619b722cf71bc69dfd9271f0e.zip
Blank trade window bug
-rw-r--r--src/resources/inventory/inventory.cpp2
1 files changed, 1 insertions, 1 deletions
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;