Merge pull request #8867 from abcdefg30/fixload

Fix a crash in LaunchArguments when switching mods
This commit is contained in:
reaperrr
2015-08-01 14:54:57 +02:00

View File

@@ -23,6 +23,9 @@ namespace OpenRA
public LaunchArguments(Arguments args)
{
if (args == null)
return;
foreach (var f in this.GetType().GetFields())
if (args.Contains("Launch" + "." + f.Name))
FieldLoader.LoadField(this, f.Name, args.GetValue("Launch" + "." + f.Name, ""));