ACF, epilogue: Play default epilogue if campaign var is not found in team
authorWuzzy <almikes@aol.com>
Tue, 26 Sep 2017 20:55:19 +0200
changeset 12541 8d249cc59430
parent 12540 1171c08fec1c
child 12542 9d069efefe52
ACF, epilogue: Play default epilogue if campaign var is not found in team
share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua	Tue Sep 26 20:00:30 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua	Tue Sep 26 20:55:19 2017 +0200
@@ -265,7 +265,8 @@
 end
 -----------------------------Misc--------------------------------------
 function GetVariables()
-  m8Scene = tonumber(GetCampaignVar("M8Scene"))
+  m8Scene = tonumber(GetCampaignVar("M8Scene")) or waterScene
+  -- waterScene is for fallback if campaign var was not found
 end
 
 function AddHogs()