1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Do not use user strings for peep names

This commit is contained in:
Ted John
2019-07-21 20:44:19 +01:00
parent 61d64ab8c5
commit 40d49b93d3
27 changed files with 282 additions and 323 deletions

View File

@@ -644,10 +644,8 @@ void game_fix_save_vars()
continue;
}
set_format_arg(0, uint32_t, peep->id);
utf8* curName = gCommonStringFormatBuffer;
rct_string_id curId = peep->name_string_idx;
format_string(curName, 256, curId, gCommonFormatArgs);
log_warning("Peep %u (%s) has invalid ride station = %u for ride %u.", spriteIndex, curName, srcStation, rideIdx);
auto curName = peep->GetName();
log_warning("Peep %u (%s) has invalid ride station = %u for ride %u.", spriteIndex, curName.c_str(), srcStation, rideIdx);
int8_t station = ride_get_first_valid_station_exit(get_ride(rideIdx));
if (station == -1)
{