diff options
author | glx <glx@openttd.org> | 2008-01-17 16:46:41 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-01-17 16:46:41 +0000 |
commit | 82727a8713e5ac551f6ea87f6a8cf155b73d2464 (patch) | |
tree | 4c8178e84a4c6e591b2904f75f8af5fb25c3337d /src/strings_func.h | |
parent | 80d62cb35830f55feea331f96dc6c49eec0b5ebe (diff) | |
download | openttd-82727a8713e5ac551f6ea87f6a8cf155b73d2464.tar.xz |
(svn r11896) -Fix (r11886): a missing const broke compilation with MSVC
Diffstat (limited to 'src/strings_func.h')
-rw-r--r-- | src/strings_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings_func.h b/src/strings_func.h index 9067f7049..2b876038b 100644 --- a/src/strings_func.h +++ b/src/strings_func.h @@ -72,7 +72,7 @@ int CDECL StringIDSorter(const void *a, const void *b); /** Key comparison function for std::map */ struct StringIDCompare { - bool operator()(StringID s1, StringID s2) { return StringIDSorter(&s1, &s2) < 0; } + bool operator()(StringID s1, StringID s2) const { return StringIDSorter(&s1, &s2) < 0; } }; void CheckForMissingGlyphsInLoadedLanguagePack(); |