From e99e008a537c4543df7c94b0341eedda061310d3 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Thu, 16 Feb 2023 15:55:34 +0800 Subject: [PATCH] Update logs Ensure setup/teardown is in correct order. --- src/packages/game/IZ_app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/game/IZ_app.c b/src/packages/game/IZ_app.c index 682cda1..f0ce4f5 100644 --- a/src/packages/game/IZ_app.c +++ b/src/packages/game/IZ_app.c @@ -71,9 +71,9 @@ IZ_AppInitializeResult IZ_AppInitialize(struct IZ_App* app, u8 argc, const char* } void IZ_AppTeardown(struct IZ_App* app) { + IZ_PoolTeardown(&app->pool); IZ_LogInfo(IZ_LOG_CATEGORY_GLOBAL, "net", "Shutting down..."); IZ_NetClientDisconnect(&app->net_state); - IZ_PoolTeardown(&app->pool); IZ_InputTeardown(&app->input_state); IZ_VideoTeardown(&app->video_state); IZ_LogInfo(IZ_LOG_CATEGORY_GLOBAL, "global", "Stopping %s...", IZ_APP_NAME);