Skip to content

Commit

Permalink
missing null check
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkroeg committed Mar 26, 2023
1 parent 69b8c5c commit 5441566
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Patches/SaveAndStatePatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Binary file modified bin/Debug/TisButAScratch.dll
Binary file not shown.
Binary file modified bin/Debug/TisButAScratch.pdb
Binary file not shown.
Binary file modified obj/Debug/TisButAScratch.dll
Binary file not shown.
Binary file modified obj/Debug/TisButAScratch.pdb
Binary file not shown.

0 comments on commit 5441566

Please sign in to comment.