forked from rosebudai/OpenRCT2-Web
Protect against unknown ride types
This commit is contained in:
1 parent
375deb0c9f
commit
63e9275b60
3 files changed
+6
-5
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user