leezer3 / OpenBVE

OpenBVE- A free train simulator
http://www.openbve-project.net
281 stars 51 forks source link

Fix: Crash when launching with GL Menu #1057

Closed Kenny-Hui closed 3 months ago

Kenny-Hui commented 3 months ago

PreloadTextures() was called without checking whether the game has launched into the new GL Menu or not, causing a crash as there's no train in the menu.

Moving to SetupSimulation should make more sense.

Fixes #1054

leezer3 commented 3 months ago

Thanks, overlooked that case.