changeset 12:4971e5d16653

Fixes #123: Rollcall plugin won't re-add Game System on reload * Always add game system when we load some objects to ensure it is always there
author IBBoard <dev@ibboard.co.uk>
date Sat, 15 Aug 2009 09:26:00 +0000
parents 9d0d40324494
children 9aecf6628eb0
files RollcallFactory.cs
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/RollcallFactory.cs	Thu Jun 25 19:51:39 2009 +0000
+++ b/RollcallFactory.cs	Sat Aug 15 09:26:00 2009 +0000
@@ -17,7 +17,6 @@
 	{
 		private static RollcallFactory factory;
 		private GameSystem rollcallSystem;
-		private bool addedSystem = false;
 		
 		public static RollcallFactory GetFactory()
 		{
@@ -64,10 +63,9 @@
 		{
 			ICollection<IWarFoundryObject> objects = base.DoCreateObjectsFromFile(file);
 			
-			if (!addedSystem && objects.Count > 0)
+			if (objects.Count > 0)
 			{
 				objects.Add(RollcallSystem);
-				addedSystem = true;
 			}
 			
 			return objects;