mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-05 05:00:06 -04:00
mem_malloc type triviality checks (7/8)
```
git grep -l mem_malloc | xargs perl -i -lpe 's{\((char) \*\)mem_malloc\((\S+)\)}{mem_rmalloc<$1>($2)}'
```
This commit is contained in:
@@ -1160,7 +1160,7 @@ void CObjectDialog::OnObjectSwapButton() {
|
||||
int o_index = ObjCreate(Object_info[d_id].type, d_id, room, &pos, &orient, parent);
|
||||
|
||||
if (temp_name[0] != '\0') {
|
||||
Objects[o_index].name = (char *)mem_malloc(strlen(temp_name) + 1);
|
||||
Objects[o_index].name = mem_rmalloc<char>(strlen(temp_name) + 1);
|
||||
strcpy(Objects[o_index].name, temp_name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user