From 685bcfa05fe5f5bb323d4974b1672d84ba9ac029 Mon Sep 17 00:00:00 2001 From: crs Date: Wed, 22 May 2002 17:02:58 +0000 Subject: [PATCH] fixed incorrect for-loop over directions conditional. --- server/CScreenMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/CScreenMap.cpp b/server/CScreenMap.cpp index 39d7d7f2..750427f6 100644 --- a/server/CScreenMap.cpp +++ b/server/CScreenMap.cpp @@ -36,7 +36,7 @@ void CScreenMap::removeScreen(const CString& name) // disconnect for (index = m_map.begin(); index != m_map.end(); ++index) { CCell& cell = index->second; - for (SInt32 i = 0; kLastDirection - kFirstDirection; ++i) + for (SInt32 i = 0; i <= kLastDirection - kFirstDirection; ++i) if (cell.m_neighbor[i] == name) { cell.m_neighbor[i].erase(); }