Fixed an off-by-one bug in the handle system

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40302
This commit is contained in:
David Anderson 2007-01-16 19:34:32 +00:00
parent 5366d05ce2
commit f7545a848f

View File

@ -756,7 +756,7 @@ bool HandleSystem::RemoveType(HandleType_t type, IdentityToken_t *ident)
if (pType->opened)
{
QHandle *pHandle;
for (unsigned int i=1; i<m_HandleTail; i++)
for (unsigned int i=1; i<=m_HandleTail; i++)
{
pHandle = &m_Handles[i];
if (!pHandle->set || pHandle->type != type)