mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 03:51:41 +00:00
Fix a possible crash from player skin colours.
This commit is contained in:
parent
3888a64458
commit
307828a2a2
1 changed files with 4 additions and 3 deletions
|
@ -460,9 +460,10 @@ qmodel_t *Mod_LoadModel (qmodel_t *mod, qboolean crash)
|
|||
|
||||
Mod_SetExtraFlags (mod); //johnfitz. spike -- moved this to be generic, because most of the flags are anyway.
|
||||
|
||||
for (i = 0; i < countof(playertextures); i++)
|
||||
if (playertextures[i] && playertextures[i]->owner == mod)
|
||||
R_TranslateNewPlayerSkin(i);
|
||||
if (cls.state == ca_connected)
|
||||
for (i = 0; i < countof(playertextures); i++)
|
||||
if (playertextures[i] && playertextures[i]->owner == mod)
|
||||
R_TranslateNewPlayerSkin(i);
|
||||
|
||||
return mod;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue