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

Commit

Permalink
fix for odd nullref when part module name is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Crzyrndm committed Oct 17, 2016
1 parent 7fa4ba7 commit 72ac53a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FilterExtension/Utility/PartType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public static bool checkModuleNameType(AvailablePart part, string value)
{
foreach (PartModule pm in ap.partPrefab.Modules)
{
if (!loaded_modules.ContainsKey(pm.moduleName))
if (!string.IsNullOrEmpty(pm.moduleName) && !loaded_modules.ContainsKey(pm.moduleName))
{
loaded_modules.Add(pm.moduleName, pm);
}
Expand Down
Binary file modified GameData/000_FilterExtensions/FilterExtensions.dll
Binary file not shown.
Binary file modified Testing/FE_Testing.dll
Binary file not shown.

0 comments on commit 72ac53a

Please sign in to comment.