Fix sign of buy command (display only)

This commit is contained in:
Sebastian Pipping 2011-10-10 04:40:45 +02:00
parent a3521100b6
commit c720456749
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class DepositCommand(Command):
class BuyCommand(Command): class BuyCommand(Command):
def __init__(self, item): def __init__(self, item):
self.item = item self.item = item
self._difference = item.price self._difference = -item.price
def run(self, user_name): def run(self, user_name):
net.buy_item(self.item.id, user_name) net.buy_item(self.item.id, user_name)