From 7db08a3fcfc126553690a2ba8339ebecd5f35ff1 Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Thu, 11 Mar 2021 22:13:32 +0100 Subject: Fix fd check --- gba_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gba_memory.c b/gba_memory.c index 0c6a7bb..47359d0 100644 --- a/gba_memory.c +++ b/gba_memory.c @@ -2362,7 +2362,7 @@ static s32 load_gamepak_raw(const char *name) // First, close the last one if it was open, we won't // be needing it anymore. - if(!gamepak_file_large) + if(gamepak_file_large) fclose(gamepak_file_large); // If it's a big file size keep it, don't close it, we'll -- cgit v1.2.3