diff --git a/python/dialog/pre/item.py b/python/dialog/pre/item.py index bf3d84c89..eb020cb28 100644 --- a/python/dialog/pre/item.py +++ b/python/dialog/pre/item.py @@ -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 \ No newline at end of file