mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-04 11:00:04 -04:00
mem_malloc type triviality checks (4/8)
```
git grep -l mem_malloc | xargs perl -i -lpe 's{\((\w+) \*\)mem_malloc\((\S+) \* sizeof\(\1\)\)}{mem_rmalloc<$1 *>($2)}'
```
This commit is contained in:
@@ -125,7 +125,7 @@ void InitRadiosityRun() {
|
||||
void SetupFormFactors() {
|
||||
ASSERT(rad_NumElements > 0);
|
||||
|
||||
rad_FormFactors = (float *)mem_malloc(rad_NumElements * sizeof(float));
|
||||
rad_FormFactors = mem_rmalloc<float>(rad_NumElements);
|
||||
ASSERT(rad_FormFactors != NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user