Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
v2.8.0.2, add another null check...
Browse files Browse the repository at this point in the history
  • Loading branch information
Crzyrndm committed Dec 20, 2016
1 parent 44fefc9 commit a436f9c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FilterExtension/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace FilterExtensions
[KSPAddon(KSPAddon.Startup.MainMenu, true)]
public class Core : MonoBehaviour
{
public static readonly Version version = new Version(2, 8, 0, 1);
public static readonly Version version = new Version(2, 8, 0, 2);

private static Core instance;
public static Core Instance
Expand Down
2 changes: 1 addition & 1 deletion FilterExtension/Utility/PartType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public static bool checkModuleNameType(AvailablePart part, string value)
Type string_type = Loaded_Modules[value];
foreach (PartModule pm in part.partPrefab.Modules)
{
if (value == pm.moduleName || string_type.IsAssignableFrom(Loaded_Modules[pm.moduleName]))
if (value == pm.moduleName || (pm.moduleName != null && string_type.IsAssignableFrom(Loaded_Modules[pm.moduleName])))
return true;
}
}
Expand Down
Binary file modified GameData/000_FilterExtensions/FilterExtensions.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion GameData/000_FilterExtensions/FilterExtensions.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"NAME":"Filter Extensions","URL":"https://github.com/Crzyrndm/FilterExtension/blob/master/GameData/000_FilterExtensions/FilterExtensions.version","DOWNLOAD":"https://github.com/Crzyrndm/FilterExtension/releases","VERSION":{"MAJOR":2,"MINOR":8,"PATCH":0,"BUILD":1},"KSP_VERSION":{"MAJOR":1,"MINOR":2,"PATCH":2}}
{"NAME":"Filter Extensions","URL":"https://github.com/Crzyrndm/FilterExtension/blob/master/GameData/000_FilterExtensions/FilterExtensions.version","DOWNLOAD":"https://github.com/Crzyrndm/FilterExtension/releases","VERSION":{"MAJOR":2,"MINOR":8,"PATCH":0,"BUILD":2},"KSP_VERSION":{"MAJOR":1,"MINOR":2,"PATCH":2}}
Binary file modified Testing/FE_Testing.dll
Binary file not shown.

0 comments on commit a436f9c

Please sign in to comment.