diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-30 11:40:54 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-06-13 10:26:58 +0200 |
commit | e588923bff12e0c46aaab72fdca3e8b5cb211081 (patch) | |
tree | 0388d8f8f4f4e4564d2b44e0300032c1327037ce /src/newgrf_debug_gui.cpp | |
parent | ca9c50607eeca1657f7da4a06fe4486574e97139 (diff) | |
download | openttd-e588923bff12e0c46aaab72fdca3e8b5cb211081.tar.xz |
Codechange: add std::string accepting SetDParamStr to ErrorMessageData
Diffstat (limited to 'src/newgrf_debug_gui.cpp')
-rw-r--r-- | src/newgrf_debug_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp index 9453f5de9..ec221e2f3 100644 --- a/src/newgrf_debug_gui.cpp +++ b/src/newgrf_debug_gui.cpp @@ -828,7 +828,7 @@ struct SpriteAlignerWindow : Window { switch (widget) { case WID_SA_CAPTION: SetDParam(0, this->current_sprite); - SetDParamStr(1, GetOriginFile(this->current_sprite)->GetSimplifiedFilename().c_str()); + SetDParamStr(1, GetOriginFile(this->current_sprite)->GetSimplifiedFilename()); break; case WID_SA_OFFSETS_ABS: |