M_LevelListFromGametype: Z_Malloc instead of Z_Calloc for initialisation of cupgrid.builtgrid

A memset is already guaranteed to follow this initialisation.
This commit is contained in:
toaster 2023-02-06 20:47:48 +00:00
parent 8b7faa10c1
commit daf11a1407

View file

@ -251,7 +251,7 @@ boolean M_LevelListFromGametype(INT16 gt)
if (cupgrid.cappages == 0) if (cupgrid.cappages == 0)
{ {
cupgrid.cappages = 2; cupgrid.cappages = 2;
cupgrid.builtgrid = Z_Calloc( cupgrid.builtgrid = Z_Malloc(
cupgrid.cappages * pagelen, cupgrid.cappages * pagelen,
PU_STATIC, PU_STATIC,
NULL); NULL);