summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-08 21:15:20 +0000
committerrubidium <rubidium@openttd.org>2013-11-08 21:15:20 +0000
commitcdd6752ead27d492f831310fee815753093f4f78 (patch)
treed056d71a7b628d5017c1ab68b0a3337ae2ab47dd
parenta41b8c851d33b7a45e8c93d1759d2cbdda031358 (diff)
downloadopenttd-cdd6752ead27d492f831310fee815753093f4f78.tar.xz
(svn r25952) -Fix [FS#5719]: do not skip numbers when skipping spaces and other sorting 'improving' characters
-rw-r--r--src/string.cpp2
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;
}