ACS: fixed an old regression in which printing a map char array did not dereference the given array variable

This commit is contained in:
Sean Baggaley 2021-11-28 23:40:25 +00:00 committed by Christoph Oelckers
parent 9fac6058b7
commit bf1577a984
1 changed files with 1 additions and 1 deletions

View File

@ -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++;