diff options
author | KUDr <kudr@openttd.org> | 2007-01-11 17:29:39 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2007-01-11 17:29:39 +0000 |
commit | 33be1ecfb1a9056b027d50d7b558cff87c5b744d (patch) | |
tree | d644a3831ca0947198b191fa3e4e8973d3a9786e /src/strings.cpp | |
parent | 91ff74641060445dc1647bbf05baeb03b45c3099 (diff) | |
download | openttd-33be1ecfb1a9056b027d50d7b558cff87c5b744d.tar.xz |
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 86a6709fc..6d1f29b9d 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -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; |