From 7b32a9bbcc4f74213b85a5e1557a05b07bbe8aa1 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Wed, 31 May 2023 21:29:07 +0300 Subject: [PATCH] Add script type check --- src/sfall_global_scripts.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfall_global_scripts.cc b/src/sfall_global_scripts.cc index 0216914..1cd65d7 100644 --- a/src/sfall_global_scripts.cc +++ b/src/sfall_global_scripts.cc @@ -184,7 +184,7 @@ void sfall_gl_scr_set_repeat(Program* program, int frames) void sfall_gl_scr_set_type(Program* program, int type) { - if (type > 3) { + if (type < 0 || type > 3) { return; }