1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

window_research_development_paint() crash fix

When the Currently in development Type: is "Ride" the game will crash,
looks like the wrong value is ANDed.
This commit is contained in:
zsilencer
2014-08-22 14:05:41 -06:00
parent 6f912b213b
commit 6414d44306

View File

@@ -346,7 +346,7 @@ static void window_research_development_paint()
if (RCT2_GLOBAL(rideEntry + 8, uint32) & 0x1000)
stringId = RCT2_GLOBAL(rideEntry, uint16);
else
stringId = (typeId & 0xFF00) + 2;
stringId = (typeId & 0xFF) + 2;
} else {
uint8 *sceneryEntry = RCT2_GLOBAL(0x009ADA90 + (typeId & 0xFFFF) * 4, uint8*);
stringId = RCT2_GLOBAL(sceneryEntry, uint16);