mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-05 05:00:06 -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:
@@ -101,7 +101,7 @@ int AllocGamePath() {
|
||||
GamePaths[i].num_nodes = 0;
|
||||
GamePaths[i].flags = 0;
|
||||
|
||||
GamePaths[i].pathnodes = (node *)mem_malloc(MAX_NODES_PER_PATH * sizeof(node));
|
||||
GamePaths[i].pathnodes = mem_rmalloc<node>(MAX_NODES_PER_PATH);
|
||||
mprintf(0, "Path %d got some\n", i);
|
||||
|
||||
Num_game_paths++;
|
||||
|
||||
Reference in New Issue
Block a user