From d5f138f14dfa28821a54e3b0dd9b457a153c4d7d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 23 Feb 2019 20:23:04 +0100 Subject: [PATCH] - made the text comparison for Dehacked case insensitive so that the contents of the string table can be properly capitalized without breaking old-style string replacements. --- src/gamedata/stringtable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gamedata/stringtable.cpp b/src/gamedata/stringtable.cpp index d57361eac6..be03b38bd5 100644 --- a/src/gamedata/stringtable.cpp +++ b/src/gamedata/stringtable.cpp @@ -275,7 +275,7 @@ const char *StringMap::MatchString (const char *string) const while (it.NextPair(pair)) { - if (pair->Value.Compare(string) == 0) + if (pair->Value.CompareNoCase(string) == 0) { return pair->Key.GetChars(); }