Merge pull request #345 from zsilencer/master

window_research_development_paint() crash fix
This commit is contained in:
Ted John committed 2014-08-22 22:29:56 +01:00
commit f4164a4c2b
1 file changed
+1 -1
+1 -1
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);