fixed incorrect for-loop over directions conditional.

This commit is contained in:
crs 2002-05-22 17:02:58 +00:00
parent a5ae8011e2
commit 685bcfa05f

View File

@ -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();
}