1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Protect against unknown ride types

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

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);