From 02d23e2a1e45e8d0cc6e1ed194bd182c80dd9322 Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 1 Mar 2023 16:18:00 -0500 Subject: [PATCH] SERVER: Close mbox file after parse Fixes suspend on PSP --- source/server/entities/machines.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/server/entities/machines.qc b/source/server/entities/machines.qc index 7107561..a0b6264 100644 --- a/source/server/entities/machines.qc +++ b/source/server/entities/machines.qc @@ -1714,6 +1714,7 @@ void() Load_Mbox_Data = for (float i = 0; i < 25; i++) { BoxWeapons[i] = 1; } + fclose(file); } else { // Parse each Line and write the Data into our Array. for (float i = 0; i < 25; i++) { @@ -1739,6 +1740,8 @@ void() Load_Mbox_Data = precache_extra(Getweaponid(i)); } } + + fclose(file); } void() mystery_box =