mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 14:30:48 +00:00
Einen Nullpointer-Check auf den Skin. Fixt einen Crash in rogue, wenn
Dateien fehlen.
This commit is contained in:
parent
be1c483597
commit
91b84e1aac
1 changed files with 16 additions and 13 deletions
|
@ -783,6 +783,8 @@ void CL_AddPacketEntities (frame_t *frame)
|
|||
//============
|
||||
//PGM
|
||||
if (renderfx & RF_USE_DISGUISE)
|
||||
{
|
||||
if (ent.skin != NULL)
|
||||
{
|
||||
if(!strncmp((char *)ent.skin, "players/male", 12))
|
||||
{
|
||||
|
@ -800,6 +802,7 @@ void CL_AddPacketEntities (frame_t *frame)
|
|||
ent.model = re.RegisterModel ("players/cyborg/tris.md2");
|
||||
}
|
||||
}
|
||||
}
|
||||
//PGM
|
||||
//============
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue