mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-14 00:40:52 +00:00
Fix a possible crash
This commit is contained in:
parent
1aab7ffa2d
commit
765a3840f1
1 changed files with 3 additions and 5 deletions
|
@ -1086,16 +1086,14 @@ void R_DelSkins(void)
|
|||
for (int i = 0; i < numskins; i++)
|
||||
{
|
||||
ST_UnLoadFaceGraphics(i);
|
||||
|
||||
Z_Free(skins[i]);
|
||||
|
||||
skins[i] = NULL;
|
||||
}
|
||||
|
||||
numskins = 0;
|
||||
|
||||
Z_Free(skins);
|
||||
|
||||
skins = NULL;
|
||||
numskins = 0;
|
||||
|
||||
M_InitCharacterTables(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue