diff --git a/KSPCommunityFixes/BugFixes/ModuleAnimateGenericCrewModSpawnIVA.cs b/KSPCommunityFixes/BugFixes/ModuleAnimateGenericCrewModSpawnIVA.cs index e9705b1..e5c00f7 100644 --- a/KSPCommunityFixes/BugFixes/ModuleAnimateGenericCrewModSpawnIVA.cs +++ b/KSPCommunityFixes/BugFixes/ModuleAnimateGenericCrewModSpawnIVA.cs @@ -48,6 +48,8 @@ static IEnumerable ModuleAnimateGeneric_CheckCrewState_Transpil static void OnCrewCapacityChanged(Part part, int newCrewCapacity) { + if (!HighLogic.LoadedSceneIsFlight) return; + if (newCrewCapacity > 0) part.SpawnIVA(); else