Fix ring scenario edition mode initialization

ryzomclassic-develop
kaetemi 5 years ago committed by Jan Boon
parent 9d1545bbe2
commit f892608865

@ -529,6 +529,7 @@ function r2.onScenarioUpdated(scenario, startingActIndex)
assert(startingActIndex); assert(startingActIndex);
assert( type(startingActIndex) == "number"); assert( type(startingActIndex) == "number");
assert(scenario.Acts);
if startingActIndex < table.getn(scenario.Acts) then if startingActIndex < table.getn(scenario.Acts) then
r2.DefaultActInstanceId = scenario.Acts[startingActIndex].InstanceId r2.DefaultActInstanceId = scenario.Acts[startingActIndex].InstanceId

Loading…
Cancel
Save