SERVER: Close mbox file after parse

Fixes suspend on PSP
This commit is contained in:
Ian 2023-03-01 16:18:00 -05:00 committed by GitHub
parent f34885f213
commit 02d23e2a1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 =