Fix #12221: Map generation tool doesn't place any trees (#12222)

This commit is contained in:
Aaron van Geffen 2020-07-13 12:35:49 +02:00 committed by GitHub
parent e2ef82ca0a
commit b0a3fd82d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@
- Fix: [#12093] Staff window tab animation was no longer updating.
- Fix: [#12123] Long server descriptions are not cut off properly.
- Fix: [#12211] Map Generator shows incorrect map sizes (e.g. "150 x 0").
- Fix: [#12221] Map Generation tool doesn't place any trees.
- Fix: RCT1 scenarios have more items in the object list than are present in the park or the research list.
- Improved: [#6530] Allow water and land height changes on park borders.
- Improved: [#11390] Build hash written to screenshot metadata.

View File

@ -349,7 +349,7 @@ static void mapgen_place_trees()
int32_t type = -1;
auto* surfaceElement = map_get_surface_element_at(pos.ToCoordsXY());
if (surfaceElement != nullptr)
if (surfaceElement == nullptr)
continue;
switch (surfaceElement->GetSurfaceStyle())
{