Oops, wrong delivery time check!

This commit is contained in:
Daniel 2015-03-07 08:10:27 +00:00
parent 2815df8203
commit 308a1ac563

View file

@ -46,7 +46,7 @@ class TTCodeRedemptionMgrAI(DistributedObjectAI):
count = 0
for item in items:
if item.getDeliveryTime() < 1:
if item.getDeliveryTime() > 0:
count += 1
return count
@ -90,4 +90,4 @@ class TTCodeRedemptionMgrAI(DistributedObjectAI):
av.onOrder.append(item)
av.b_setDeliverySchedule(av.onOrder)
self.sendUpdateToAvatarId(avId, 'redeemCodeResult', [context, 0, 0])
self.sendUpdateToAvatarId(avId, 'redeemCodeResult', [context, 0, 0])