temporary edge-case fix

This commit is contained in:
msturgill 2014-01-15 14:43:49 -07:00
parent e15e65033e
commit 6571b05f33

View file

@ -1350,6 +1350,11 @@ namespace Server
{
++m_CurrentIndex;
if (m_CurrentIndex < 0 || m_CurrentIndex > m_CurrentList.Count) { // Sanity
Console.WriteLine("EntityEnumerator OOB: {0}", m_CurrentIndex);
return false;
}
if (m_CurrentIndex == m_CurrentList.Count)
{
++m_ySector;
@ -2104,4 +2109,4 @@ namespace Server
throw new ArgumentException();
}
}
}
}