From b9185f7c627063a10e166ca473b3b26f04a3f19f Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 23 Sep 2010 01:56:04 +0000 Subject: [PATCH] - Added a NULL skins[] check to AActor::SetState(). SVN r2846 (trunk) --- src/p_mobj.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index 0257fc23c..71e0a2512 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -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; }