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:
Jan Engelhardt
2024-08-30 20:52:36 +02:00
parent bb38a4a565
commit 4d2fdb2316
22 changed files with 65 additions and 65 deletions

View File

@@ -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;