From f89260886545fd3a179c27a8cc0352101c93e82c Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 27 Mar 2020 13:03:14 +0800 Subject: [PATCH] Fix ring scenario edition mode initialization --- code/ryzom/common/data_common/r2/r2_features.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/code/ryzom/common/data_common/r2/r2_features.lua b/code/ryzom/common/data_common/r2/r2_features.lua index 9ef14c1a6..e354c1280 100644 --- a/code/ryzom/common/data_common/r2/r2_features.lua +++ b/code/ryzom/common/data_common/r2/r2_features.lua @@ -529,6 +529,7 @@ function r2.onScenarioUpdated(scenario, startingActIndex) assert(startingActIndex); assert( type(startingActIndex) == "number"); + assert(scenario.Acts); if startingActIndex < table.getn(scenario.Acts) then r2.DefaultActInstanceId = scenario.Acts[startingActIndex].InstanceId