Fix #5299: Scenario editor crash when placing peep spawn

This commit is contained in:
Michał Janiszewski 2017-03-10 23:00:50 +01:00
parent 0ea93c5509
commit 00b6fb53c6
2 changed files with 4 additions and 0 deletions

View File

@ -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)
------------------------------------------------------------------------

View File

@ -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;
}