mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-08 14:00:07 -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:
@@ -246,7 +246,7 @@ bool CScriptEditorDlg::FindNext(char *w) {
|
||||
|
||||
// Make a copy of the script to work with
|
||||
char *text;
|
||||
text = (char *)mem_malloc(GetScriptLength());
|
||||
text = mem_rmalloc<char>(GetScriptLength());
|
||||
strcpy(text, GetScript());
|
||||
max = GetScriptLength();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user