twn_models.c: ignore deinit if it's not needed

This commit is contained in:
veclavtalica 2025-02-08 00:19:22 +03:00
parent 145b040a0f
commit 8c248cb3fb

View File

@ -222,7 +222,8 @@ void free_model_cache(void) {
void model_state_deinit(void) {
SDL_assert(model_load_initialized);
if (!model_load_initialized)
return;
free_model_cache();
arrfree(model_load_queue);
SDL_DestroyMutex(model_load_mutex);