mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
Clear old camera from previous level
The sound code could accidentally reference an old invalid camera during level spawn
This commit is contained in:
parent
79abe2d4e9
commit
9dad8bdbbe
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue