mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 07:01:09 +00:00
- Duke: Fix potential null actor access in gi->CanSave()
.
This commit is contained in:
parent
7217ce6ff9
commit
9dfb805b38
1 changed files with 3 additions and 3 deletions
|
@ -90,9 +90,9 @@ void GameInterface::MenuSound(EMenuSounds snd)
|
|||
|
||||
bool GameInterface::CanSave()
|
||||
{
|
||||
if (ud.recstat == 2 || gamestate != GS_LEVEL) return false;
|
||||
auto &myplayer = ps[myconnectindex];
|
||||
return (myplayer.GetActor()->spr.extra > 0);
|
||||
if (ud.recstat == 2) return false;
|
||||
auto pActor = ps[myconnectindex].GetActor();
|
||||
return (pActor && pActor->spr.extra > 0);
|
||||
}
|
||||
|
||||
bool GameInterface::StartGame(FNewGameStartup& gs)
|
||||
|
|
Loading…
Reference in a new issue