From 57f3805466e67a279e64427302798b29690b2a45 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Thu, 4 Jan 2007 21:27:27 +0000 Subject: Forgot the packet header. No wonder it did not work... --- src/game-server/gamehandler.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game-server/gamehandler.cpp') diff --git a/src/game-server/gamehandler.cpp b/src/game-server/gamehandler.cpp index 54d3a224..6c9786ff 100644 --- a/src/game-server/gamehandler.cpp +++ b/src/game-server/gamehandler.cpp @@ -251,6 +251,7 @@ void GameHandler::processMessage(NetComputer *comp, MessageIn &message) Point opos = o->getPosition(); if (o->getType() == OBJECT_ITEM && opos.x == x && opos.y == y) { + result.writeShort(GPMSG_INVENTORY); ItemClass *item = static_cast< Item * >(o)->getItemClass(); Inventory(computer.character, result).insert(item->getDatabaseID(), 1); gameState->remove(o); -- cgit v1.2.3-70-g09d2