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:
parent
742030bbc0
commit
96c2db4d56
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user