From 3c0ebf1869d54da521992b838abbd0b6b3c39e6e Mon Sep 17 00:00:00 2001 From: Julian Murgia Date: Mon, 21 Mar 2022 22:19:11 +0100 Subject: [PATCH] Fix: out of bounds exception in camera_push (#546) --- .../game/core-scripts/esc/commands/camera_push.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/escoria-core/game/core-scripts/esc/commands/camera_push.gd b/addons/escoria-core/game/core-scripts/esc/commands/camera_push.gd index 79f81f06..bd5e6046 100644 --- a/addons/escoria-core/game/core-scripts/esc/commands/camera_push.gd +++ b/addons/escoria-core/game/core-scripts/esc/commands/camera_push.gd @@ -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