mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
VCAI::getFlaggedObjects: don't use thread specific ptr within VCAI
This commit is contained in:
@@ -1764,7 +1764,7 @@ std::vector<const CGObjectInstance *> VCAI::getFlaggedObjects() const
|
||||
std::vector<const CGObjectInstance *> ret;
|
||||
for(const CGObjectInstance *obj : visitableObjs)
|
||||
{
|
||||
if(obj->tempOwner == ai->playerID)
|
||||
if(obj->tempOwner == playerID)
|
||||
ret.push_back(obj);
|
||||
}
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user