Permalink
Browse files

Merge pull request #233 from FranciscoDA/vbuyfix

fixes vehicles being bought twice in transaction screen
  • Loading branch information...
JonnyH committed Nov 3, 2017
2 parents e67b4f8 + 8ce66dd commit feca4d2855d2ca43333f3fde20c865f09cc9eee8
Showing with 0 additions and 2 deletions.
  1. +0 −2 game/ui/base/transactionscreen.cpp
@@ -1142,7 +1142,6 @@ void TransactionScreen::executeOrders()
if (va.second > 0)
{
auto org = e.first->manufacturer;
org->purchase(*state, bases[va.first]->building, e.first, va.second);
if (org->isRelatedTo(player) != Organisation::Relation::Hostile)
{
org->purchase(*state, bases[va.first]->building, e.first, va.second);
@@ -1163,7 +1162,6 @@ void TransactionScreen::executeOrders()
if (vt.second > 0)
{
auto org = e.first->manufacturer;
org->purchase(*state, bases[vt.first]->building, e.first, vt.second);
if (org->isRelatedTo(player) != Organisation::Relation::Hostile)
{
org->purchase(*state, bases[vt.first]->building, e.first, vt.second);

0 comments on commit feca4d2

Please sign in to comment.