From bf1577a984928fa01c885a64fd283540a7d1d5c5 Mon Sep 17 00:00:00 2001 From: Sean Baggaley Date: Sun, 28 Nov 2021 23:40:25 +0000 Subject: [PATCH] ACS: fixed an old regression in which printing a map char array did not dereference the given array variable --- src/playsim/p_acs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playsim/p_acs.cpp b/src/playsim/p_acs.cpp index 545bdd9c8..215fb0e34 100644 --- a/src/playsim/p_acs.cpp +++ b/src/playsim/p_acs.cpp @@ -8570,7 +8570,7 @@ scriptwait: int capacity, offset, a, c; if (CharArrayParms(capacity, offset, a, Stack, sp, pcd == PCD_PRINTMAPCHRANGE)) { - while (capacity-- && (c = activeBehavior->GetArrayVal (a, offset)) != '\0') + while (capacity-- && (c = activeBehavior->GetArrayVal (*activeBehavior->MapVars[a], offset)) != '\0') { work += (char)c; offset++;