summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-07 06:55:04 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-07 06:55:04 +0000
commit682be63061b2134cd3bc8b272fd3180e82437bb9 (patch)
treeb29e9906e384183d878d05e7b3270334cfa300e0 /src/game.cpp
parent4d68f2a2c9eaf01092ad94399372ea979b7a0076 (diff)
downloadmana-client-682be63061b2134cd3bc8b272fd3180e82437bb9.tar.gz
mana-client-682be63061b2134cd3bc8b272fd3180e82437bb9.tar.bz2
mana-client-682be63061b2134cd3bc8b272fd3180e82437bb9.tar.xz
mana-client-682be63061b2134cd3bc8b272fd3180e82437bb9.zip
Fixing compiling issues
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 2c7b1f2f..d6af3bcd 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -801,20 +801,20 @@ void do_parse() {
switch (RFIFOB(4)) {
case 0:
// Successfully added item
- int ind = RFIFOW(2);
- if (inventoryWindow->items->isEquipment(ind)) {
- if (inventoryWindow->items->isEquipped(ind)) {
- inventoryWindow->unequipItem(ind);
+ if (inventoryWindow->items->isEquipment(RFIFOW(2))) {
+ if (inventoryWindow->items->isEquipped(RFIFOW(2))) {
+ inventoryWindow->unequipItem(RFIFOW(2));
}
}
tradeWindow->addItem(
tradeWindow->my_items->getFreeSlot(),
- inventoryWindow->items->getId(ind),
- true,
- inventoryWindow->items->getQuantity(ind),
- inventoryWindow->items->isEquipment(ind));
- inventoryWindow->changeQuantity(ind, 0);
+ inventoryWindow->items->getId(RFIFOW(2)),
+ true, inventoryWindow->items->getQuantity(
+ RFIFOW(2)),
+ inventoryWindow->items->isEquipment(
+ RFIFOW(2)));
+ inventoryWindow->changeQuantity(RFIFOW(2), 0);
break;
case 1:
// Add item failed - player overweighted