We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 380afda commit 1a44d5cCopy full SHA for 1a44d5c
1 file changed
src/Battlescape/InventoryState.cpp
@@ -474,6 +474,17 @@ void InventoryState::btnOkClick(Action *)
474
_battleGame->setSelectedUnit(inventoryTile->getUnit());
475
}
476
477
+
478
+ // initialize xcom units for battle
479
+ for (std::vector<BattleUnit*>::iterator j = _battleGame->getUnits()->begin(); j != _battleGame->getUnits()->end(); ++j)
480
+ {
481
+ if ((*j)->getOriginalFaction() != FACTION_PLAYER || (*j)->isOut())
482
483
+ continue;
484
+ }
485
486
+ (*j)->prepareNewTurn();
487
488
489
490
0 commit comments