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-b93c2d0d6712master
parent
4ec2680733
commit
8870b46365
|
@ -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
|
Loading…
Reference in New Issue