diff options
Diffstat (limited to 'src/net/npchandler.cpp')
-rw-r--r-- | src/net/npchandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/npchandler.cpp b/src/net/npchandler.cpp index a803710e..62355180 100644 --- a/src/net/npchandler.cpp +++ b/src/net/npchandler.cpp @@ -52,15 +52,15 @@ void NPCHandler::handleMessage(MessageIn *msg) switch (msg->getId()) { case SMSG_NPC_CHOICE: - msg->readInt16(); // length - current_npc = dynamic_cast<NPC*>(beingManager->findBeing(msg->readInt32())); + msg->readShort(); // length + current_npc = dynamic_cast<NPC*>(beingManager->findBeing(msg->readLong())); npcListDialog->parseItems(msg->readString(msg->getLength() - 8)); npcListDialog->setVisible(true); break; case SMSG_NPC_MESSAGE: - msg->readInt16(); // length - current_npc = dynamic_cast<NPC*>(beingManager->findBeing(msg->readInt32())); + msg->readShort(); // length + current_npc = dynamic_cast<NPC*>(beingManager->findBeing(msg->readLong())); npcTextDialog->addText(msg->readString(msg->getLength() - 8)); npcListDialog->setVisible(false); npcTextDialog->setVisible(true); |