Fix a crash in LaunchArguments when switching mods

This commit is contained in:
abcdefg30
2015-08-01 13:45:41 +02:00
parent 4934d6c035
commit 5e3d600408

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, ""));