Fixed potential compilation error in ACS loader

https://forum.zdoom.org/viewtopic.php?t=59164
This commit is contained in:
alexey.lysiuk 2018-01-20 10:34:07 +02:00
parent 19cf887ad1
commit b5006bbee4

View file

@ -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 short>(((unsigned *)chunk)[1]) - 2)) / 4;
unsigned count = LittleShort(static_cast<unsigned short>(((unsigned *)chunk)[1] - 2)) / 4;
int *sizes = (int *)((uint8_t *)chunk + 10);
arrays->Count = count;
if (count > 0)