1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-13 11:40:38 +02:00

remove useless variable

This commit is contained in:
Andrey Filipenkov 2022-09-20 14:52:43 +03:00
parent 742030bbc0
commit 96c2db4d56

View File

@ -1711,8 +1711,7 @@ void CAdvMapInt::tileHovered(const int3 &mapPos)
} }
else if(const CGHeroInstance * h = curHero()) else if(const CGHeroInstance * h = curHero())
{ {
int3 mapPosCopy = mapPos; const CGPathNode * pnode = LOCPLINT->cb->getPathsInfo(h)->getPathInfo(mapPos);
const CGPathNode * pnode = LOCPLINT->cb->getPathsInfo(h)->getPathInfo(mapPosCopy);
assert(pnode); assert(pnode);
int turns = pnode->turns; int turns = pnode->turns;