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:
		
							parent
							
								
									5366d05ce2
								
							
						
					
					
						commit
						f7545a848f
					
				| @ -756,7 +756,7 @@ bool HandleSystem::RemoveType(HandleType_t type, IdentityToken_t *ident) | |||||||
| 	if (pType->opened) | 	if (pType->opened) | ||||||
| 	{ | 	{ | ||||||
| 		QHandle *pHandle; | 		QHandle *pHandle; | ||||||
| 		for (unsigned int i=1; i<m_HandleTail; i++) | 		for (unsigned int i=1; i<=m_HandleTail; i++) | ||||||
| 		{ | 		{ | ||||||
| 			pHandle = &m_Handles[i]; | 			pHandle = &m_Handles[i]; | ||||||
| 			if (!pHandle->set || pHandle->type != type) | 			if (!pHandle->set || pHandle->type != type) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user