larsiusprime / bazaarBot

A simple free market simulator engine. Based on "Emergent Economies for Role Playing Games" by Doran and Parberry.
MIT License
377 stars 47 forks source link

small issue #3

Closed questor closed 10 years ago

questor commented 11 years ago

in resolve_offers there's this code:

            //transfer the goods for the agreed price
            seller.units -= quantity_traded;
            buyer.units -= quantity_traded;

I think these variables aren't used later, but still one should be "+", right? :)

endoedgar commented 10 years ago

There is no problem there, seller and buyer are "Offers" not Agents.