From 6d9f3d30786d3c3e4f6b1867d8cb5a471094d59f Mon Sep 17 00:00:00 2001 From: Stradex Date: Thu, 11 Jun 2020 14:03:09 -0300 Subject: [PATCH] fix: change _malloca to _alloca --- neo/renderer/tr_light.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/renderer/tr_light.cpp b/neo/renderer/tr_light.cpp index 5a04cc03..72b5970a 100644 --- a/neo/renderer/tr_light.cpp +++ b/neo/renderer/tr_light.cpp @@ -1634,7 +1634,7 @@ void R_RemoveUnecessaryViewLights( void ) { return ((sortLight_t*)a)->screenArea - ((sortLight_t*)b)->screenArea; } }; - sortLight_t* sortLights = (sortLight_t*)_malloca(sizeof(sortLight_t) * numViewLights); + sortLight_t* sortLights = (sortLight_t*)_alloca(sizeof(sortLight_t) * numViewLights); int numSortLightsFilled = 0; for (viewLight_t* vLight = tr.viewDef->viewLights; vLight != NULL; vLight = vLight->next) { sortLights[numSortLightsFilled].vLight = vLight;