From 3ec234757f0cf365d86e40f485a68fcc5f6115dd Mon Sep 17 00:00:00 2001 From: Tobias Pfaff Date: Sat, 14 Jun 2014 23:01:35 +0300 Subject: [PATCH] GRIM/EMI: Fix bridge height check. See #842 --- engines/grim/sector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/engines/grim/sector.cpp b/engines/grim/sector.cpp index 29ab69a448..5d9a6989ed 100644 --- a/engines/grim/sector.cpp +++ b/engines/grim/sector.cpp @@ -392,6 +392,7 @@ Common::List Sector::getBridgesTo(Sector *sector) const { } // All the bridges should be at the same height on both sectors. + it = bridges.begin(); while (it != bridges.end()) { if (g_grim->getGameType() == GType_MONKEY4) { if (fabs(getProjectionToPlane((*it).begin()).y() - sector->getProjectionToPlane((*it).begin()).y()) > 0.01f ||