diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-06-02 11:48:08 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-06-02 11:48:34 +0200 |
commit | dc4a4b99178fe5ed0c5ca2b40792ec513b75a32f (patch) | |
tree | 83bb5009df26381a2545cf0679909085baaf900a /scripts/lua/libmana-constants.lua | |
parent | 8c7c1818d5d2e8566ceb8756a6a6352d085e3fda (diff) | |
download | manaserv-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/libmana-constants.lua')
0 files changed, 0 insertions, 0 deletions