mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
reduce amount of times the pointer is freed to one
track_list_cache is being free()d as part of track_load_list, which is a better place to do so, as it has full ownership of that pointer.
This commit is contained in:
@@ -397,7 +397,6 @@ void track_list_populate(ride_list_item item, uint8* track_list_cache){
|
||||
}
|
||||
|
||||
RCT2_ADDRESS(RCT2_ADDRESS_TRACK_LIST, uint8)[cur_track_entry_index * 128] = '\0';
|
||||
free(track_list_cache);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user