Browse Source

remove useless variable

Andrey Filipenkov 3 years ago
parent
commit
96c2db4d56
1 changed files with 1 additions and 2 deletions
  1. 1 2
      client/windows/CAdvmapInterface.cpp

+ 1 - 2
client/windows/CAdvmapInterface.cpp

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