summaryrefslogtreecommitdiff
path: root/src/hotkeys.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-05-17 23:32:03 +0200
committerMichael Lutz <michi@icosahedron.de>2020-05-21 20:02:34 +0200
commit715aa67a9c13444ee76e717bfa656472f5fb2ac3 (patch)
tree3a9cd303082ced0bceb6246edc02102a28fcc3fd /src/hotkeys.cpp
parent8aef14386fc403ee631f176abf0ec86af7dcd37b (diff)
downloadopenttd-715aa67a9c13444ee76e717bfa656472f5fb2ac3.tar.xz
Codechange: Use std::string in INI file parsing.
Diffstat (limited to 'src/hotkeys.cpp')
-rw-r--r--src/hotkeys.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp
index d5cd90b3c..0bf350f8f 100644
--- a/src/hotkeys.cpp
+++ b/src/hotkeys.cpp
@@ -290,7 +290,7 @@ void HotkeyList::Load(IniFile *ini)
IniItem *item = group->GetItem(hotkey->name, false);
if (item != nullptr) {
hotkey->keycodes.clear();
- if (item->value != nullptr) ParseHotkeys(hotkey, item->value);
+ if (item->value.has_value()) ParseHotkeys(hotkey, item->value->c_str());
}
}
}