Fix variable-length array definition, just in case.

This commit is contained in:
sphere 2020-04-22 23:10:43 +02:00
parent 01a1297631
commit e26788d014

View file

@ -693,7 +693,7 @@ void P_ScanThings(INT16 mapnum, INT16 wadnum, INT16 lumpnum)
static void P_SpawnEmeraldHunt(void) static void P_SpawnEmeraldHunt(void)
{ {
INT32 emer[3], num[numhuntemeralds], randomkey; INT32 emer[3], num[MAXHUNTEMERALDS], randomkey;
fixed_t x, y, z; fixed_t x, y, z;
for (int i = 0; i < numhuntemeralds; i++) for (int i = 0; i < numhuntemeralds; i++)