summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 6aad95fd..f41651e2 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -846,11 +846,14 @@ void do_parse()
case 0x00e9:
// TODO:
// Maybe also handle identified, etc
- // handle zeny as well
-
- tradeWindow->addItem(
+ if (RFIFOW(6) == 0)
+ {
+ tradeWindow->addMoney(RFIFOL(2));
+ } else {
+ tradeWindow->addItem(
tradeWindow->partnerItems->getFreeSlot(), RFIFOW(6),
false, RFIFOL(2), false);
+ }
break;
// Trade: New Item add response
case 0x01b1: