summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/npchandler.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp
index 1356dbf8c..bb53ef33f 100644
--- a/src/net/tmwa/npchandler.cpp
+++ b/src/net/tmwa/npchandler.cpp
@@ -329,10 +329,14 @@ void NpcHandler::processNpcCommand(Net::MessageIn &msg, const int npcId)
mDialog->clearRows();
break;
case 10: // send selected item id
+ {
+ int invSize = msg.readInt32();
+ if (!invSize)
+ invSize = 1;
if (mDialog)
- mDialog->itemRequest();
+ mDialog->itemRequest(invSize);
break;
-
+ }
default:
logger->log("unknown npc command: %d", cmd);
break;