mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 17:02:37 +01:00
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
This commit is contained in:
@@ -1166,7 +1166,7 @@ bool ReadLanguagePack(int lang_index)
|
||||
}
|
||||
|
||||
// Allocate offsets
|
||||
MallocT(&langpack_offs, tot_count);
|
||||
langpack_offs = MallocT<char*>(tot_count);
|
||||
|
||||
// Fill offsets
|
||||
s = lang_pack->data;
|
||||
|
||||
Reference in New Issue
Block a user