1
0
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:
Mircea TheHonestCTO
2025-09-05 18:10:14 +02:00
parent 51e3e42b07
commit b49ba08a45
17 changed files with 58 additions and 75 deletions

View File

@@ -86,8 +86,7 @@ void ObjectGraph::removeObject(const CGObjectInstance * obj)
{
vstd::erase_if(nodes[obj->visitablePos()].connections, [&](const std::pair<int3, ObjectLink> & link) -> bool
{
auto tile = ccTl->getTile(link.first, false);
const auto tile = ccTl->getTile(link.first, false);
return tile && tile->isWater();
});
}