Changeset - r27198:6bdedb06adea
[Not reviewed]
master
0 1 0
Rubidium - 13 months ago 2023-04-29 11:43:09
rubidium@openttd.org
Fix 4dd5f994: hotkey parsing was broken
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/hotkeys.cpp
Show inline comments
 
@@ -99,7 +99,7 @@ static uint16 ParseCode(const char *star
 
	assert(start <= end);
 
	while (start < end && *start == ' ') start++;
 
	while (end > start && *end == ' ') end--;
 
	std::string_view str{start, (size_t)(start - end)};
 
	std::string_view str{start, (size_t)(end - start)};
 
	for (uint i = 0; i < lengthof(_keycode_to_name); i++) {
 
		if (StrEqualsIgnoreCase(str, _keycode_to_name[i].name)) {
 
			return _keycode_to_name[i].keycode;
0 comments (0 inline, 0 general)