Skip to content

Commit

Permalink
ACS: fixed an old regression in which printing a map char array did n…
Browse files Browse the repository at this point in the history
…ot dereference the given array variable
  • Loading branch information
DrinkyBird authored and coelckers committed Nov 29, 2021
1 parent 9fac605 commit bf1577a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playsim/p_acs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8570,7 +8570,7 @@ int DLevelScript::RunScript()
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++;
Expand Down

0 comments on commit bf1577a

Please sign in to comment.