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

View file

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