diff --git a/src/scripting/vmthunks.cpp b/src/scripting/vmthunks.cpp index 3a8a9f71be..719efae163 100644 --- a/src/scripting/vmthunks.cpp +++ b/src/scripting/vmthunks.cpp @@ -1769,7 +1769,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset) static void SetWallColorization(side_t* self, int pos, int cname) { - if (pos >= 0 && pos < 2) + if (pos >= 0 && pos < 3) { self->SetTextureFx(pos, TexMan.GetTextureManipulation(ENamedName(cname))); }