From b5006bbee462297fc8971cd858de89eac5b2a3a0 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 20 Jan 2018 10:34:07 +0200 Subject: [PATCH] Fixed potential compilation error in ACS loader https://forum.zdoom.org/viewtopic.php?t=59164 --- src/p_acs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index eccfb48af4..e2fccad141 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -2367,7 +2367,7 @@ void FBehavior::SerializeVarSet (FSerializer &arc, int32_t *vars, int max) static int ParseLocalArrayChunk(void *chunk, ACSLocalArrays *arrays, int offset) { - unsigned count = (LittleShort(static_cast(((unsigned *)chunk)[1]) - 2)) / 4; + unsigned count = LittleShort(static_cast(((unsigned *)chunk)[1] - 2)) / 4; int *sizes = (int *)((uint8_t *)chunk + 10); arrays->Count = count; if (count > 0)