# HG changeset patch
# User Wuzzy <almikes@aol.com>
# Date 1506452119 -7200
# Node ID 8d249cc5943036383f80df55f9aefdc7280cb58b
# Parent  1171c08fec1cecb9c4e488f93878b5844bdba6a6
ACF, epilogue: Play default epilogue if campaign var is not found in team

diff -r 1171c08fec1c -r 8d249cc59430 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()