Fixed IHandleSys::RemoveType() not removing the type name from the name cache (bug 2753).
This commit is contained in:
		
							parent
							
								
									fb2f0795c5
								
							
						
					
					
						commit
						ef62e3d665
					
				@ -910,6 +910,15 @@ bool HandleSystem::RemoveType(HandleType_t type, IdentityToken_t *ident)
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						/* Remove it from the type cache. */
 | 
				
			||||||
 | 
						if (pType->nameIdx != -1)
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							const char *typeName;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							typeName = m_strtab->GetString(pType->nameIdx);
 | 
				
			||||||
 | 
							sm_trie_delete(m_TypeLookup, typeName);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return true;
 | 
						return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user