summaryrefslogtreecommitdiff
path: root/scripts/lua/npclib.lua
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-06-02 11:48:08 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-06-02 11:48:34 +0200
commitdc4a4b99178fe5ed0c5ca2b40792ec513b75a32f (patch)
tree83bb5009df26381a2545cf0679909085baaf900a /scripts/lua/npclib.lua
parent8c7c1818d5d2e8566ceb8756a6a6352d085e3fda (diff)
downloadmanaserv-dc4a4b99178fe5ed0c5ca2b40792ec513b75a32f.tar.gz
manaserv-dc4a4b99178fe5ed0c5ca2b40792ec513b75a32f.tar.bz2
manaserv-dc4a4b99178fe5ed0c5ca2b40792ec513b75a32f.tar.xz
manaserv-dc4a4b99178fe5ed0c5ca2b40792ec513b75a32f.zip
Fixed crash when handling unequip
* The 'itp' parameter is no longer simply ignored (seems to be a small optimization in Inventory::remove) * Avoid incrementing an invalid iterator, fixing a crash (problem found by Stefan Dombrowski) * Use the right inventory index in the call to changeEquipment, which previously was using "it", which would be equal to "it_end" there. Reviewed-by: Stefan Dombrowski
Diffstat (limited to 'scripts/lua/npclib.lua')
0 files changed, 0 insertions, 0 deletions