mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-04-22 02:41:03 +00:00
fix: change _malloca to _alloca
This commit is contained in:
parent
65d12cbaac
commit
6d9f3d3078
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue