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

Fix guard check

This commit is contained in:
Tomasz Zieliński 2024-05-01 11:38:44 +02:00
parent 5315beec8c
commit d5b6e31223

View File

@ -428,7 +428,7 @@ int3 rmg::Object::getGuardPos() const
{
if (instance.object().ID == Obj::MONSTER)
{
return instance.getPosition(true);
return instance.getVisitablePosition();
}
}
}