diff --git a/src/p_enemy.c b/src/p_enemy.c index 227b8dd47..3b90f65a9 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -12028,7 +12028,10 @@ void A_Boss5FindWaypoint(mobj_t *actor) actor->z -= hackoffset; if (!numwaypoints) + { + Z_Free(waypoints); // free table goto nowaypoints; // ??? + } key = P_RandomKey(numwaypoints);