File tree Expand file tree Collapse file tree
GeneralsMD/Code/GameEngine/Source/GameNetwork Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -334,8 +334,7 @@ void PopulateStartingCashComboBox(GameWindow *comboBox, GameInfo *myGame)
334334 const MultiplayerStartingMoneyList & startingCashMap = TheMultiplayerSettings->getStartingMoneyList ();
335335 Int currentSelectionIndex = -1 ;
336336
337- MultiplayerStartingMoneyList::const_iterator it = startingCashMap.begin ();
338- for ( ; it != startingCashMap.end (); it++ )
337+ for (MultiplayerStartingMoneyList::const_iterator it = startingCashMap.begin (); it != startingCashMap.end (); it++ )
339338 {
340339 Int newIndex = GadgetComboBoxAddEntry (comboBox, formatMoneyForStartingCashComboBox ( *it ),
341340 comboBox->winGetEnabled () ? comboBox->winGetEnabledTextColor () : comboBox->winGetDisabledTextColor ());
@@ -352,7 +351,7 @@ void PopulateStartingCashComboBox(GameWindow *comboBox, GameInfo *myGame)
352351 DEBUG_CRASH ( (" Current selection for starting cash not found in list" ) );
353352 currentSelectionIndex = GadgetComboBoxAddEntry (comboBox, formatMoneyForStartingCashComboBox ( myGame->getStartingCash () ),
354353 comboBox->winGetEnabled () ? comboBox->winGetEnabledTextColor () : comboBox->winGetDisabledTextColor ());
355- GadgetComboBoxSetItemData (comboBox, currentSelectionIndex, (void *)it-> countMoney () );
354+ GadgetComboBoxSetItemData (comboBox, currentSelectionIndex, (void *)myGame-> getStartingCash (). countMoney () );
356355 }
357356
358357 GadgetComboBoxSetSelectedPos (comboBox, currentSelectionIndex);
You can’t perform that action at this time.
0 commit comments