mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-26 02:31:13 +00:00
- Blood: Fix potential null actor access in gi->CanSave()
.
This commit is contained in:
parent
9dfb805b38
commit
bcbebc5c1a
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ void GameInterface::MenuClosed()
|
|||
|
||||
bool GameInterface::CanSave()
|
||||
{
|
||||
return (gamestate == GS_LEVEL && gPlayer[myconnectindex].actor->xspr.health != 0);
|
||||
return gPlayer[myconnectindex].actor && gPlayer[myconnectindex].actor->xspr.health != 0;
|
||||
}
|
||||
|
||||
FSavegameInfo GameInterface::GetSaveSig()
|
||||
|
|
Loading…
Reference in a new issue