From 86d248ed2b033fe36ce53b0387b2cbdcb69c0b72 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 28 Jul 2026 19:11:34 +0200 Subject: finish undo/redo --- src/game.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 523e884..7b526ae 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -224,6 +224,12 @@ void game_on_tick( GAME_DATA* game ) { _profiled } void game_destroy( GAME_DATA *game ) { +#if IS_EDITOR + editor_destroy( game->editor ); +#endif + if( game->state.map ) + map_free( game, game->state.map ); + gl_batch_destroy( game->render.batch_2d ); gl_batch_destroy( game->render.batch_3d ); gl_destroy( game->gl ); -- cgit v1.2.3