1
0
Fork 0

Codechange: do not mess with global string params to get pointer to first element

pull/11006/head
Rubidium 2023-06-13 15:41:34 +02:00 committed by rubidium42
parent aba0d27a28
commit 82851a9bef
1 changed files with 1 additions and 2 deletions

View File

@ -673,8 +673,7 @@ struct TooltipsWindow : public Window
static_assert(sizeof(this->params[0]) == sizeof(params[0]));
assert(paramcount <= lengthof(this->params));
if (params == nullptr) {
_global_string_params.offset = 0;
params = _global_string_params.GetDataPointer();
params = _global_string_params.GetPointerToOffset(0);
}
if (paramcount > 0) memcpy(this->params, params, sizeof(this->params[0]) * paramcount);
this->paramcount = paramcount;