summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
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 );