Clear old camera from previous level

The sound code could accidentally reference an old invalid camera during
level spawn
This commit is contained in:
Edward Richardson 2014-03-13 18:27:39 +13:00
parent 79abe2d4e9
commit 9dad8bdbbe
1 changed files with 1 additions and 0 deletions

View File

@ -1084,6 +1084,7 @@ void G_StartTravel ()
{
AActor *pawn = players[i].mo;
AInventory *inv;
players[i].camera = NULL;
// Only living players travel. Dead ones get a new body on the new level.
if (players[i].health > 0)