Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
fixed bug with scene resolution when one scene has no conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
rudism committed May 10, 2020
1 parent 44ed5f1 commit f7cab51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Ficdown.Parser/Ficdown.Parser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion Ficdown.Parser/Player/StateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f7cab51

Please sign in to comment.