mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
VCAI::getFlaggedObjects: don't use thread specific ptr within VCAI
This commit is contained in:
parent
379331fc73
commit
6433d7dd40
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user