mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Replaced most of accesses to CGObjectInstance::pos with anchorPoint()
This commit is contained in:
@ -539,7 +539,7 @@ EDiggingStatus CGameInfoCallback::getTileDigStatus(int3 tile, bool verbose) cons
|
||||
|
||||
for(const auto & object : gs->map->objects)
|
||||
{
|
||||
if(object && object->ID == Obj::HOLE && object->pos == tile)
|
||||
if(object && object->ID == Obj::HOLE && object->anchorPos() == tile)
|
||||
return EDiggingStatus::TILE_OCCUPIED;
|
||||
}
|
||||
return getTile(tile)->getDiggingStatus();
|
||||
|
Reference in New Issue
Block a user