diff --git a/Ficdown.Parser/Ficdown.Parser.csproj b/Ficdown.Parser/Ficdown.Parser.csproj index 7ef2714..aecfc99 100644 --- a/Ficdown.Parser/Ficdown.Parser.csproj +++ b/Ficdown.Parser/Ficdown.Parser.csproj @@ -13,6 +13,7 @@ + diff --git a/Ficdown.Parser/Player/StateManager.cs b/Ficdown.Parser/Player/StateManager.cs index da73e95..92a709d 100644 --- a/Ficdown.Parser/Player/StateManager.cs +++ b/Ficdown.Parser/Player/StateManager.cs @@ -182,7 +182,7 @@ private Scene GetScene(string blockName, Anchor anchor, string target, BitArray { if (ConditionsMatch(scene, playerState) && (newScene == null || newScene.Conditions == null || - scene.Conditions.Count > newScene.Conditions.Count)) + (scene.Conditions != null && scene.Conditions.Count > newScene.Conditions.Count))) { newScene = scene; }