diff options
author | Jan-Fabian Humann <malastare@gmx.net> | 2005-04-04 17:59:12 +0000 |
---|---|---|
committer | Jan-Fabian Humann <malastare@gmx.net> | 2005-04-04 17:59:12 +0000 |
commit | acb216cbbd50f68710502068bec83e073128d6fc (patch) | |
tree | 88e5649a5814bdc0ea7c3e646e79f8fee790a63e /src/game.cpp | |
parent | e571ede8b977f7e69dd7ee28c0edc04cd71400d3 (diff) | |
download | mana-acb216cbbd50f68710502068bec83e073128d6fc.tar.gz mana-acb216cbbd50f68710502068bec83e073128d6fc.tar.bz2 mana-acb216cbbd50f68710502068bec83e073128d6fc.tar.xz mana-acb216cbbd50f68710502068bec83e073128d6fc.zip |
quick fix for bug which increased item amount when warping client-side
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 7f3ff7eb..b145190a 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -775,7 +775,10 @@ void do_parse() { break; // Get the items + // Only called on map load / warp case 0x01ee: + // Reset all items to not load them twice on map change + inventoryWindow->items->resetItems(); for (int loop = 0; loop < (RFIFOW(2) - 4) / 18; loop++) { inventoryWindow->addItem(RFIFOW(4 + loop * 18), RFIFOW(4 + loop * 18 + 2), |