1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00

Fix remaining errors and a few bugs

This commit is contained in:
Ted John
2019-07-21 02:22:03 +01:00
parent 3f45976009
commit 3f8890afde
8 changed files with 168 additions and 132 deletions

View File

@@ -55,9 +55,8 @@ protected:
Ride* ride;
FOR_ALL_RIDES ((*outRideIndex), ride)
{
char thisName[256];
format_string(thisName, sizeof(thisName), ride->name, &ride->name_arguments);
if (!_strnicmp(thisName, name, sizeof(thisName)))
auto thisName = ride->GetName();
if (!_strnicmp(thisName.c_str(), name, sizeof(thisName)))
return ride;
}