summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-05-17 23:32:06 +0200
committerMichael Lutz <michi@icosahedron.de>2020-05-21 20:02:34 +0200
commita49fdb7ebbb8d8ce96bcd7bd779b18bcd86d0643 (patch)
treefc6776836040a068e6c1710288cee853ba28b565 /src/newgrf_gui.cpp
parent715aa67a9c13444ee76e717bfa656472f5fb2ac3 (diff)
downloadopenttd-a49fdb7ebbb8d8ce96bcd7bd779b18bcd86d0643.tar.xz
Codechange: Store base set related texts in std::strings.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 3f0a2ee7e..284e5737e 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -925,7 +925,7 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
list.emplace_back(new DropDownListStringItem(STR_NONE, -1, false));
for (uint i = 0; i < this->grf_presets.size(); i++) {
- list.emplace_back(new DropDownListCharStringItem(this->grf_presets[i].c_str(), i, false));
+ list.emplace_back(new DropDownListCharStringItem(this->grf_presets[i], i, false));
}
this->DeleteChildWindows(WC_QUERY_STRING); // Remove the parameter query window