summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-27 20:13:45 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-27 20:13:45 +0000
commitfc342cc8deacdf826e343b1ce796b47bbd918f61 (patch)
tree56c6b33198313f112dc5b56a5bf14bb7e0a9fad5 /src/game.cpp
parent10f77f010f8831368ab359074f6e0640961f3818 (diff)
downloadMana-fc342cc8deacdf826e343b1ce796b47bbd918f61.tar.gz
Mana-fc342cc8deacdf826e343b1ce796b47bbd918f61.tar.bz2
Mana-fc342cc8deacdf826e343b1ce796b47bbd918f61.tar.xz
Mana-fc342cc8deacdf826e343b1ce796b47bbd918f61.zip
Fix the bug where sometimes the last entry in the npc list windows is missing.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp
index c40a052c..8f7f3aa5 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1697,10 +1697,8 @@ void do_parse()
// List in NPC dialog
case 0x00b7:
current_npc = RFIFOL(4);
- // Hammerbear: Second argument here shouldn't be neccesary,
- // instead make sure the string is \0 terminated.
- //parse_items(RFIFOP(8), RFIFOW(2));
- npcListDialog->parseItems(RFIFOP(8));
+ // RFIFOW(2) seems to be the full packet length, thus -8
+ npcListDialog->parseItems(RFIFOP(8), RFIFOW(2)-8);
npcListDialog->setVisible(true);
break;