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.pull/238/head
parent
0c4443667d
commit
751434ea63
Loading…
Reference in New Issue