Skip to content

Commit 01325ec

Browse files
author
Guillaume Chevallereau
committed
Consume items/cash only if possible
1 parent 876c71a commit 01325ec

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Savegame/Production.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ bool Production::step(Base * b, SavedGame * g, bool & newItemPossible)
6161
{
6262
newItemPossible &= (b->getItems ()->getItem(iter->first) >= iter->second);
6363
}
64-
startItem(b, g);
64+
if(newItemPossible)
65+
{
66+
startItem(b, g);
67+
}
6568
}
6669
return false;
6770
}

0 commit comments

Comments
 (0)