From e13d43a576bfa42bf163407f89ab80f4bcc56b7a Mon Sep 17 00:00:00 2001 From: Major Cooke Date: Fri, 7 Feb 2020 22:56:46 -0600 Subject: [PATCH] Fixed colorization not being applicable to bottom wall textures. --- src/scripting/vmthunks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/vmthunks.cpp b/src/scripting/vmthunks.cpp index 3a8a9f71b..719efae16 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))); }