- Blood: Fix potential null actor access in gi->CanSave().

This commit is contained in:
Mitchell Richters 2023-04-02 19:18:45 +10:00
parent 9dfb805b38
commit bcbebc5c1a

View file

@ -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()