diff --git a/1.2/Assemblies/Rimworld-Animations.dll b/1.2/Assemblies/Rimworld-Animations.dll index 7fc523e..e4865de 100644 Binary files a/1.2/Assemblies/Rimworld-Animations.dll and b/1.2/Assemblies/Rimworld-Animations.dll differ diff --git a/Source/AnimationUtility.cs b/Source/AnimationUtility.cs index 47c894e..1a94c9b 100644 --- a/Source/AnimationUtility.cs +++ b/Source/AnimationUtility.cs @@ -108,7 +108,7 @@ namespace Rimworld_Animations { Log.Message("Selecting animation for interaction type " + sexProps.DictionaryKey.defName + "..."); return optionsWithInteractionType.RandomElement(); } - List optionsWithSexType = options.ToList().FindAll(x => x.sexTypes.Contains(sexType)); + List optionsWithSexType = options.ToList().FindAll(x => x.sexTypes != null && x.sexTypes.Contains(sexType)); if (optionsWithSexType.Any()) { if (AnimationSettings.debugMode) Log.Message("Selecting animation for rjwSexType " + sexType.ToStringSafe() + "..."); diff --git a/Source/Defs/AnimationDef.cs b/Source/Defs/AnimationDef.cs index fe44534..119b98d 100644 --- a/Source/Defs/AnimationDef.cs +++ b/Source/Defs/AnimationDef.cs @@ -13,7 +13,7 @@ namespace Rimworld_Animations { public List actors; public int animationTimeTicks = 0; //do not set manually public bool sounds = false; - public List sexTypes; + public List sexTypes = null; public List interactionDefTypes = null; public override void PostLoad() {