fixed bug with scene resolution when one scene has no conditionals
This commit is contained in:
parent
44ed5f165b
commit
f7cab514cc
2 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue