Einen Nullpointer-Check auf den Skin. Fixt einen Crash in rogue, wenn

Dateien fehlen.
This commit is contained in:
Yamagi Burmeister 2010-02-20 07:48:37 +00:00
parent be1c483597
commit 91b84e1aac

View file

@ -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
//============
}