Fix: out of bounds exception in camera_push (#546)
This commit is contained in:
1 parent
9455bf8e21
commit
3c0ebf1869
1 file changed
+2
-2
@@ -47,12 +47,12 @@ func validate(arguments: Array):
|
||||
]
|
||||
)
|
||||
return false
|
||||
if not arguments[3] in SUPPORTED_TRANSITIONS:
|
||||
if not arguments[2] in SUPPORTED_TRANSITIONS:
|
||||
escoria.logger.report_errors(
|
||||
"camera_shift: invalid transition type",
|
||||
[
|
||||
"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
|
||||
|
||||
Reference in new issue
Block a user