mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
- fixed: APowerup::EndEffect could crash if the item was not owned by a valid player actor.
SVN r2256 (trunk)
This commit is contained in:
parent
1436f0a4fa
commit
18d58ef1c5
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ void APowerup::EndEffect ()
|
|||
{
|
||||
int colormap = GetSpecialColormap(BlendColor);
|
||||
|
||||
if (colormap != NOFIXEDCOLORMAP && Owner->player->fixedcolormap == colormap)
|
||||
if (colormap != NOFIXEDCOLORMAP && Owner && Owner->player && Owner->player->fixedcolormap == colormap)
|
||||
{ // only unset if the fixed colormap comes from this item
|
||||
Owner->player->fixedcolormap = NOFIXEDCOLORMAP;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue