mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- Added a NULL skins[] check to AActor::SetState().
SVN r2846 (trunk)
This commit is contained in:
parent
b8fa340986
commit
b9185f7c62
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ bool AActor::SetState (FState *newstate, bool nofunction)
|
||||||
// for Dehacked, I would move sprite changing out of the states
|
// for Dehacked, I would move sprite changing out of the states
|
||||||
// altogether, since actors rarely change their sprites after
|
// altogether, since actors rarely change their sprites after
|
||||||
// spawning.
|
// spawning.
|
||||||
if (player != NULL)
|
if (player != NULL && skins != NULL)
|
||||||
{
|
{
|
||||||
sprite = skins[player->userinfo.skin].sprite;
|
sprite = skins[player->userinfo.skin].sprite;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue