Skip to content

Commit

Permalink
SotA S18: Fix empty type unit bug reported in forums
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdfdragon authored and Vultraz committed Mar 16, 2017
1 parent 11ed709 commit 303dd6a
Showing 1 changed file with 14 additions and 6 deletions.
Expand Up @@ -625,12 +625,20 @@ Now the process is complete for both of us. I posted a guard so nothing could ha
name=end_scenario

# If one of the leaders left the map and is stored, bring it back now:
[unstore_unit]
variable=leader_gone
[/unstore_unit]
[clear_variable]
name=leader_gone
[/clear_variable]
[if]
[variable]
name=leader_gone.length
equals=1
[/variable]
[then]
[unstore_unit]
variable=leader_gone
[/unstore_unit]
[clear_variable]
name=leader_gone
[/clear_variable]
[/then]
[/if]

[endlevel]
result=victory
Expand Down

0 comments on commit 303dd6a

Please sign in to comment.