diff options
author | Patric Stout <truebrain@openttd.org> | 2021-03-25 11:57:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-25 11:57:28 +0100 |
commit | 751434ea638dbb476b188de408eae6f036a35363 (patch) | |
tree | 3553a85b5f7feb03fafde442e99399f78b9e0350 /src/script/script_fatalerror.hpp | |
parent | 0c4443667d04727ff7b0774a4f5bbb4fec233c4d (diff) | |
download | openttd-751434ea638dbb476b188de408eae6f036a35363.tar.xz |
Fix: placing random trees in SE crashes the game (#8892)
This used to work by accident: originally the code checked if
GenerateWorld was threaded. If not, it would abort the function.
This worked for placing trees, because it was also returning false
when it was not active.
With the recent changes, that check got removed, and this crash
started to happen. So now check if we have a modal window, which
is a very solid indication we are generating the world.
Diffstat (limited to 'src/script/script_fatalerror.hpp')
0 files changed, 0 insertions, 0 deletions