- Added a NULL skins[] check to AActor::SetState().

SVN r2846 (trunk)
This commit is contained in:
Randy Heit 2010-09-23 01:56:04 +00:00
parent b8fa340986
commit b9185f7c62

View file

@ -547,7 +547,7 @@ bool AActor::SetState (FState *newstate, bool nofunction)
// for Dehacked, I would move sprite changing out of the states
// altogether, since actors rarely change their sprites after
// spawning.
if (player != NULL)
if (player != NULL && skins != NULL)
{
sprite = skins[player->userinfo.skin].sprite;
}