diff options
author | rubidium <rubidium@openttd.org> | 2013-11-08 21:15:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-08 21:15:20 +0000 |
commit | cdd6752ead27d492f831310fee815753093f4f78 (patch) | |
tree | d056d71a7b628d5017c1ab68b0a3337ae2ab47dd /src | |
parent | a41b8c851d33b7a45e8c93d1759d2cbdda031358 (diff) | |
download | openttd-cdd6752ead27d492f831310fee815753093f4f78.tar.xz |
(svn r25952) -Fix [FS#5719]: do not skip numbers when skipping spaces and other sorting 'improving' characters
Diffstat (limited to 'src')
-rw-r--r-- | src/string.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.cpp b/src/string.cpp index ada9f9022..301f150f8 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -608,7 +608,7 @@ char *strcasestr(const char *haystack, const char *needle) */ static const char *SkipGarbage(const char *str) { - while (*str != '\0' && (*str < 'A' || IsInsideMM(*str, '[', '`' + 1) || IsInsideMM(*str, '{', '~' + 1))) str++; + while (*str != '\0' && (*str < '0' || IsInsideMM(*str, ';', '@' + 1) || IsInsideMM(*str, '[', '`' + 1) || IsInsideMM(*str, '{', '~' + 1))) str++; return str; } |