Protect against unknown ride types

This commit is contained in:
Ted John committed 2018-03-30 16:58:12 +01:00
1 parent 375deb0c9f
commit 63e9275b60
3 files changed
+6 -5

No files matched your search

+3 -3
View File
@@ -80,9 +80,9 @@ namespace String
sint32 Compare(const utf8 * a, const utf8 * b, bool ignoreCase)
{
if (a == b) return true;
if (a == nullptr || b == nullptr) return false;
if (a == b) return 0;
if (a == nullptr) a = "";
if (b == nullptr) b = "";
if (ignoreCase)
{
return _stricmp(a, b);