diff options
author | cuoco <atunna2026@gmail.com> | 2023-05-15 12:29:51 +0000 |
---|---|---|
committer | cuoco <atunna2026@gmail.com> | 2023-05-15 12:29:51 +0000 |
commit | 4e3f1d6405a746d619b722cf71bc69dfd9271f0e (patch) | |
tree | e3fde64483a9944e671ebb18bfac6f9d48998979 /src/resources/inventory | |
parent | 279c7ba28804960ae3b2ec0753b4c3a92d5a6ede (diff) | |
download | plus-4e3f1d6405a746d619b722cf71bc69dfd9271f0e.tar.gz plus-4e3f1d6405a746d619b722cf71bc69dfd9271f0e.tar.bz2 plus-4e3f1d6405a746d619b722cf71bc69dfd9271f0e.tar.xz plus-4e3f1d6405a746d619b722cf71bc69dfd9271f0e.zip |
Blank trade window bug
Diffstat (limited to 'src/resources/inventory')
-rw-r--r-- | src/resources/inventory/inventory.cpp | 2 |
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; |