mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Made CTypeList threadsafe
This commit is contained in:
@ -450,6 +450,7 @@ CTypeList::TypeInfoPtr CTypeList::registerType( const std::type_info *type )
|
||||
|
||||
ui16 CTypeList::getTypeID(const std::type_info * type) const
|
||||
{
|
||||
TSharedLock lock(mx);
|
||||
auto i = typeInfos.find(type);
|
||||
if(i != typeInfos.end())
|
||||
return i->second->typeID;
|
||||
|
Reference in New Issue
Block a user