summaryrefslogtreecommitdiff
path: root/src/hotkeys.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-12 08:10:22 +0000
committerrubidium <rubidium@openttd.org>2011-11-12 08:10:22 +0000
commitbd64bf6372399bad1a92565ae7d3c243658d241f (patch)
tree7af646337e5ddafe68f0d701711c41ef89d21491 /src/hotkeys.cpp
parenta8d33a4d89f11c45b9690481b08df3c800292005 (diff)
downloadopenttd-bd64bf6372399bad1a92565ae7d3c243658d241f.tar.xz
(svn r23193) -Codechange: don't cast away const unneededly
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 674c10c73..70fe72aea 100644
--- a/src/hotkeys.cpp
+++ b/src/hotkeys.cpp
@@ -75,7 +75,7 @@ static uint16 ParseCode(const char *start, const char *end)
if (end - start == 1) {
if (*start >= 'a' && *start <= 'z') return *start - ('a'-'A');
/* Ignore invalid keycodes */
- if (*(uint8*)start < 128) return *start;
+ if (*(const uint8 *)start < 128) return *start;
}
return 0;
}