1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

getVisibleTeleportObjects: use getObj as not verbose

We checking visibility in this function so there no need to send information about that into errorStream.
This commit is contained in:
ArseniyShestakov 2015-12-04 05:43:55 +03:00
parent 791d1e7ab4
commit eced16945e

View File

@ -853,7 +853,7 @@ std::vector<ObjectInstanceID> CGameInfoCallback::getVisibleTeleportObjects(std::
{
vstd::erase_if(ids, [&](ObjectInstanceID id) -> bool
{
auto obj = getObj(id);
auto obj = getObj(id, false);
return player != PlayerColor::UNFLAGGABLE && (!obj || !isVisible(obj->pos, player));
});
return ids;