Quanties can be 0 for non merging, take that into account.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14497 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2011-05-29 17:50:39 +00:00
parent 4ec2680733
commit 8870b46365
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,10 @@ if itemname == "money":
else:
inv = character.CheckInventory(itemname)
if inv:
if inv.Quantity < int(quantity):
q = inv.Quantity
if q == 0:
q = 1
if q < int(quantity):
verdict = False
else:
verdict = False