twn_models.c: ignore deinit if it's not needed
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user