mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 03:06:55 -04:00
Exit crash (#140)
* Fixes crash on exit * Shorter comment --------- Co-authored-by: Person Person <firestarscree123@gmail.com>
This commit is contained in:
parent
277bcfe48e
commit
345bb0e419
@ -758,6 +758,10 @@ pub fn main() !void {
|
||||
gui.windowlist.gpu_performance_measuring.stopQuery();
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure that threadPool is done before freeing any data
|
||||
threadPool.clear();
|
||||
|
||||
if(game.world) |world| {
|
||||
world.deinit();
|
||||
game.world = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user