1
0
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:
Arseniy Shestakov 2016-08-11 12:19:08 +03:00
parent 379331fc73
commit 6433d7dd40

View File

@ -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;