diff FrmNewArmy.cs @ 110:39b93ca5fb9c

Fixes #234: Invalid data file doesn't stop load * Refactor army change code * Only set CurrentArmy value once we know it is safe and properly loaded * Separate out smaller methods with sensible names * Make CurrentGameSystem and CurrentArmy non-static Also: * Use parameter in FrmNewArmy constructor instead of ignoring it
author IBBoard <dev@ibboard.co.uk>
date Sat, 19 Dec 2009 15:45:21 +0000
parents 3fae39208d06
children 18d607b0249b
line wrap: on
line diff
--- a/FrmNewArmy.cs	Thu Dec 17 20:54:55 2009 +0000
+++ b/FrmNewArmy.cs	Sat Dec 19 15:45:21 2009 +0000
@@ -51,9 +51,9 @@
 				gameSystems.Items.Add(gameSystem);
 			}
 
-			if (WarFoundryCore.CurrentGameSystem != null)
+			if (system != null)
 			{
-				gameSystems.SelectedItem = FrmMain.CurrentGameSystem;
+				gameSystems.SelectedItem = system;
 			}
 			else if (gameSystems.Items.Count == 1)
 			{