Fix a possible crash

This commit is contained in:
Lactozilla 2024-07-06 00:58:14 -03:00
parent 1aab7ffa2d
commit 765a3840f1

View file

@ -1086,16 +1086,14 @@ void R_DelSkins(void)
for (int i = 0; i < numskins; i++) for (int i = 0; i < numskins; i++)
{ {
ST_UnLoadFaceGraphics(i); ST_UnLoadFaceGraphics(i);
Z_Free(skins[i]); Z_Free(skins[i]);
skins[i] = NULL;
} }
numskins = 0;
Z_Free(skins); Z_Free(skins);
skins = NULL;
numskins = 0;
M_InitCharacterTables(0); M_InitCharacterTables(0);
} }