mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Replaced most of accesses to CGObjectInstance::pos with anchorPoint()
This commit is contained in:
@ -283,7 +283,7 @@ void ApplyGhNetPackVisitor::visitTradeOnMarketplace(TradeOnMarketplace & pack)
|
||||
gh.throwAndComplain(&pack, "Can not trade - no hero!");
|
||||
|
||||
// TODO: check that object is actually being visited (e.g. Query exists)
|
||||
if (!object->visitableAt(hero->visitablePos().x, hero->visitablePos().y))
|
||||
if (!object->visitableAt(hero->visitablePos()))
|
||||
gh.throwAndComplain(&pack, "Can not trade - object not visited!");
|
||||
|
||||
if (object->getOwner().isValidPlayer() && gh.getPlayerRelations(object->getOwner(), hero->getOwner()) == PlayerRelations::ENEMIES)
|
||||
|
Reference in New Issue
Block a user