From b93dfcf3cf676c3fd4e7fdb972a3408932761edd Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Wed, 27 Feb 2013 03:13:55 +0000 Subject: [PATCH] - Fixed: G_DoLoadLevel() has a for loop where it resets player cameras that incremented and checked the wrong variable. SVN r4168 (trunk) --- src/g_level.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_level.cpp b/src/g_level.cpp index 3e54f5aa3..e01152924 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -927,7 +927,7 @@ void G_DoLoadLevel (int position, bool autosave) G_UnSnapshotLevel (!savegamerestore); // [RH] Restore the state of the level. G_FinishTravel (); // For each player, if they are viewing through a player, make sure it is themselves. - for (int ii = 0; i < MAXPLAYERS; ++i) + for (int ii = 0; ii < MAXPLAYERS; ++ii) { if (playeringame[ii] && (players[ii].camera == NULL || players[ii].camera->player != NULL)) {