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:
@@ -204,8 +204,8 @@ int Read3DSMaxFile(char *filename) {
|
||||
Nest_level = 0;
|
||||
|
||||
// Alloc space for reading stuff in
|
||||
Reading_room.faces = (reading_face *)mem_malloc(MAX_READING_ROOM_FACES * sizeof(reading_face));
|
||||
Reading_room.verts = (vector *)mem_malloc(MAX_VERTS_PER_ROOM * sizeof(vector));
|
||||
Reading_room.faces = mem_rmalloc<reading_face>(MAX_READING_ROOM_FACES);
|
||||
Reading_room.verts = mem_rmalloc<vector>(MAX_VERTS_PER_ROOM);
|
||||
|
||||
Reading_room.num_faces = 0;
|
||||
Reading_room.num_verts = 0;
|
||||
|
||||
Reference in New Issue
Block a user