fixed bug with scene resolution when one scene has no conditionals

main v1.1.2
Rudis Muiznieks 2 years ago
parent 44ed5f165b
commit f7cab514cc
  1. 1
      Ficdown.Parser/Ficdown.Parser.csproj
  2. 2
      Ficdown.Parser/Player/StateManager.cs

@ -13,6 +13,7 @@
<PackageReference Include="Epub4Net" Version="1.2.0" />
<PackageReference Include="Ionic.Zip" Version="1.9.1.8" />
<PackageReference Include="Markdig" Version="0.17.1" />
<PackageReference Include="System.Security.Permissions" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.5.1" />
</ItemGroup>
</Project>

@ -182,7 +182,7 @@
{
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;
}

Loading…
Cancel
Save