Codechange: migrate from C-style GetString to C++-style GetString

This commit is contained in:
Rubidium
2023-05-19 14:35:53 +02:00
committed by rubidium42
parent 1a179cb297
commit 63d9bb93b8
7 changed files with 31 additions and 67 deletions

View File

@@ -155,8 +155,8 @@ void CopyOutDParam(uint64 *dst, int offs, int num)
*/
void CopyOutDParam(uint64 *dst, const char **strings, StringID string, int num)
{
char buf[DRAW_STRING_BUFFER];
GetString(buf, string, lastof(buf));
/* Just get the string to extract the type information. */
GetString(string);
MemCpyT(dst, _global_string_params.GetPointerToOffset(0), num);
for (int i = 0; i < num; i++) {