Fix: out of bounds exception in camera_push (#546)

This commit is contained in:
Julian Murgia
2022-03-21 22:19:11 +01:00
committed by GitHub
parent 9455bf8e21
commit 3c0ebf1869

View File

@@ -47,12 +47,12 @@ func validate(arguments: Array):
] ]
) )
return false return false
if not arguments[3] in SUPPORTED_TRANSITIONS: if not arguments[2] in SUPPORTED_TRANSITIONS:
escoria.logger.report_errors( escoria.logger.report_errors(
"camera_shift: invalid transition type", "camera_shift: invalid transition type",
[ [
"Transition type {t_type} is not one of the accepted types : {allowed_types}".format( "Transition type {t_type} is not one of the accepted types : {allowed_types}".format(
{"t_type":arguments[3],"allowed_types":SUPPORTED_TRANSITIONS}) {"t_type":arguments[2],"allowed_types":SUPPORTED_TRANSITIONS})
] ]
) )
return false return false