mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Don't try to process skins in GL without a player model.
If the client receives a skin updated message from the server before having loaded the player model (shouldn't happen, but some servers have very strange programmers), no skin data is avaible for updating, so just bail out.
This commit is contained in:
parent
bb1a342629
commit
39e1ccc506
1 changed files with 2 additions and 0 deletions
|
@ -184,6 +184,8 @@ build_skin (skin_t *skin, int cmap)
|
|||
s = skins + cmap;
|
||||
if (!s->tex)
|
||||
s = &player_skin;
|
||||
if (!s->tex) // we haven't loaded the player model yet
|
||||
return;
|
||||
texnum = skin_textures + cmap;
|
||||
fb_texnum = 0;
|
||||
if (s->fb)
|
||||
|
|
Loading…
Reference in a new issue