Skip to content

Commit

Permalink
Fixed: Crash when attempting to autostart as a camera.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Feb 28, 2010
1 parent b73de6b commit e5eb601
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doomsday/engine/portable/src/p_players.c
Expand Up @@ -95,10 +95,10 @@ int P_ConsoleToLocal(int playerNum)
{
return 0;
}

if(!(plr->shared.flags & DDPF_LOCAL))
return -1; // Not local at all.

for(i = 0; i < DDMAXPLAYERS; ++i)
{
int console = (i + consolePlayer) % DDMAXPLAYERS;
Expand All @@ -108,7 +108,7 @@ int P_ConsoleToLocal(int playerNum)
{
return count;
}

if(plr->shared.flags & DDPF_LOCAL)
count++;
}
Expand Down Expand Up @@ -159,7 +159,7 @@ boolean P_IsInVoid(player_t* player)
if(ddpl->inVoid)
return true;

if(ddpl->mo->subsector)
if(ddpl->mo && ddpl->mo->subsector)
{
sector_t* sec = ddpl->mo->subsector->sector;

Expand Down

0 comments on commit e5eb601

Please sign in to comment.