summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-07-28 19:11:34 +0200
committeraura <nw@moneybot.cc>2026-07-28 19:11:34 +0200
commit86d248ed2b033fe36ce53b0387b2cbdcb69c0b72 (patch)
treea70f32a0f44b927a6d137998efa405e330689c0f /src/game.cpp
parent468813b133a6a3ff0b85d3b34f1009cfeae815e4 (diff)
finish undo/redo
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp6
1 files changed, 6 insertions, 0 deletions
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 );