From 8932ab4e91dcbf66496639162d3945ee28b8b6ca Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Sun, 12 Feb 2023 17:04:51 -0500 Subject: [PATCH] Fix off-by-one in CallFunc_SetLineTexture --- src/acs/call-funcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acs/call-funcs.cpp b/src/acs/call-funcs.cpp index fb4c0e1df..3e7ca5040 100644 --- a/src/acs/call-funcs.cpp +++ b/src/acs/call-funcs.cpp @@ -783,7 +783,7 @@ bool CallFunc_SetLineTexture(ACSVM::Thread *thread, const ACSVM::Word *argV, ACS texPos = argV[2]; map = thread->scopeMap; - str = map->getString(argV[4]); + str = map->getString(argV[3]); texName = str->str; texId = R_TextureNumForName(texName);