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; }