From 9dad8bdbbed9a7d8c0779b926613825ec8a92374 Mon Sep 17 00:00:00 2001 From: Edward Richardson Date: Thu, 13 Mar 2014 18:27:39 +1300 Subject: [PATCH] Clear old camera from previous level The sound code could accidentally reference an old invalid camera during level spawn --- src/g_level.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/g_level.cpp b/src/g_level.cpp index cf40b5099..65bde08d8 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -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)