Sink some variables

This commit is contained in:
Michał Janiszewski 2018-01-02 22:03:10 +01:00 committed by GitHub
parent 1bc711e266
commit 7f5e3a3a64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -47,10 +47,9 @@ rct_string_id user_string_allocate(sint32 base, const utf8 *text)
return 0;
}
char * userString;
for (sint32 i = 0; i < MAX_USER_STRINGS; i++)
{
userString = gUserStrings[i];
char * userString = gUserStrings[i];
if (userString[0] != 0)
continue;

View File

@ -1863,12 +1863,11 @@ static money32 place_track_design(sint16 x, sint16 y, sint16 z, uint8 flags, uin
{
uint8 rideGroupIndex = ori->RideGroupIndex;
const RideGroup * td6RideGroup = RideGroupManager::RideGroupFind(td6->type, rideGroupIndex);
rct_ride_entry * ire;
uint8 * availableRideEntries = get_ride_entry_indices_for_ride_type(td6->type);
for (uint8 * rei = availableRideEntries; *rei != RIDE_ENTRY_INDEX_NULL; rei++)
uint8 * availableRideEntries = get_ride_entry_indices_for_ride_type(td6->type);
for (uint8 * rei = availableRideEntries; *rei != RIDE_ENTRY_INDEX_NULL; rei++)
{
ire = get_ride_entry(*rei);
rct_ride_entry * ire = get_ride_entry(*rei);
if (!ride_entry_is_invented(*rei) && !gCheatsIgnoreResearchStatus)
{