diff --git a/Patches/SaveAndStatePatches.cs b/Patches/SaveAndStatePatches.cs index 964d4aa..60b2a48 100644 --- a/Patches/SaveAndStatePatches.cs +++ b/Patches/SaveAndStatePatches.cs @@ -572,6 +572,7 @@ public static class Team_AddUnit { public static void Postfix(Team __instance, AbstractActor unit) { + if (sim == null) return; //still need to make AI GUID end with aiPilotFlag var p = unit.GetPilot(); p.ForceRefreshDef(); diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index ab6d56c..97cd5d7 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.6.0")] -[assembly: AssemblyFileVersion("1.0.6.0")] +[assembly: AssemblyVersion("1.0.6.1")] +[assembly: AssemblyFileVersion("1.0.6.1")] diff --git a/bin/Debug/TisButAScratch.dll b/bin/Debug/TisButAScratch.dll index e298129..84a6646 100644 Binary files a/bin/Debug/TisButAScratch.dll and b/bin/Debug/TisButAScratch.dll differ diff --git a/bin/Debug/TisButAScratch.pdb b/bin/Debug/TisButAScratch.pdb index b13d219..f7fdd6f 100644 Binary files a/bin/Debug/TisButAScratch.pdb and b/bin/Debug/TisButAScratch.pdb differ diff --git a/obj/Debug/TisButAScratch.dll b/obj/Debug/TisButAScratch.dll index e298129..84a6646 100644 Binary files a/obj/Debug/TisButAScratch.dll and b/obj/Debug/TisButAScratch.dll differ diff --git a/obj/Debug/TisButAScratch.pdb b/obj/Debug/TisButAScratch.pdb index b13d219..f7fdd6f 100644 Binary files a/obj/Debug/TisButAScratch.pdb and b/obj/Debug/TisButAScratch.pdb differ