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

Fix needless double invocation of Memory::Set

Memory::Set() invocations moved to InitialiseEntryMaps() function.
This commit is contained in:
Richard Jenkins
2017-07-03 23:59:19 +01:00
committed by GitHub
parent 0422699539
commit 048c543fe2

View File

@@ -310,15 +310,6 @@ private:
// Avoid reusing the value used for last import
_parkValueConversionFactor = 0;
Memory::Set(_rideTypeToRideEntryMap, 255, sizeof(_rideTypeToRideEntryMap));
Memory::Set(_vehicleTypeToRideEntryMap, 255, sizeof(_vehicleTypeToRideEntryMap));
Memory::Set(_smallSceneryTypeToEntryMap, 255, sizeof(_smallSceneryTypeToEntryMap));
Memory::Set(_largeSceneryTypeToEntryMap, 255, sizeof(_largeSceneryTypeToEntryMap));
Memory::Set(_wallTypeToEntryMap, 255, sizeof(_wallTypeToEntryMap));
Memory::Set(_pathTypeToEntryMap, 255, sizeof(_pathTypeToEntryMap));
Memory::Set(_pathAdditionTypeToEntryMap, 255, sizeof(_pathAdditionTypeToEntryMap));
Memory::Set(_sceneryThemeTypeToEntryMap, 255, sizeof(_sceneryThemeTypeToEntryMap));
InitialiseEntryMaps();
uint16 mapSize = _s4.map_size == 0 ? 128 : _s4.map_size;