mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
more thread_local removal in NK2, still WIP
This commit is contained in:
@@ -310,12 +310,8 @@ void ObjectClusterizer::clusterize()
|
||||
{
|
||||
for(auto id : invalidated)
|
||||
{
|
||||
auto obj = ccTl->getObj(id, false);
|
||||
|
||||
if(obj)
|
||||
{
|
||||
if(auto obj = aiNk->cc->getObj(id, false))
|
||||
objs.push_back(obj);
|
||||
}
|
||||
}
|
||||
|
||||
invalidated.clear();
|
||||
@@ -353,7 +349,7 @@ void ObjectClusterizer::clusterize()
|
||||
|
||||
for(auto pair : blockedObjects)
|
||||
{
|
||||
auto blocker = ccTl->getObj(pair.first);
|
||||
auto blocker = aiNk->cc->getObj(pair.first);
|
||||
|
||||
logAi->trace("Cluster %s %s count: %i", blocker->getObjectName(), blocker->visitablePos().toString(), pair.second->objects.size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user