mirror of https://github.com/OpenRCT2/OpenRCT2.git
Validate access to _terrainEdgeSpriteIds (#4752)
This commit is contained in:
parent
c95dbf4b2f
commit
3c7499f370
|
@ -502,6 +502,8 @@ static void viewport_surface_draw_land_side_top(enum edge_t edge, uint8 height,
|
|||
return;
|
||||
}
|
||||
|
||||
assert(terrain < countof(_terrainEdgeSpriteIds));
|
||||
|
||||
if (!(gCurrentViewportFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE)) {
|
||||
uint8 incline = (regs.cl - regs.al) + 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue