mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #5299: Scenario editor crash when placing peep spawn
This commit is contained in:
parent
0ea93c5509
commit
00b6fb53c6
|
@ -8,6 +8,7 @@
|
|||
- Fix: [#5150] --openrct-data-path sets user data path instead of OpenRCT2 data path.
|
||||
- Fix: [#5188] Clicking on a Magic Carpet doesn't open the ride window.
|
||||
- Fix: [#5238] RCT1 import: Rides are initially free when placing them.
|
||||
- Fix: [#5299] Scenario editor crash when placing peep spawn
|
||||
|
||||
0.0.6 (2017-01-29)
|
||||
------------------------------------------------------------------------
|
||||
|
|
|
@ -1357,6 +1357,9 @@ static void window_map_set_peep_spawn_tool_down(sint32 x, sint32 y)
|
|||
return;
|
||||
|
||||
surfaceMapElement = map_get_surface_element_at(mapX >> 5, mapY >> 5);
|
||||
if (surfaceMapElement == NULL) {
|
||||
return;
|
||||
}
|
||||
if (surfaceMapElement->properties.surface.ownership & 0xF0) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue