From 96c2db4d56e42948c88e416d4a9e7855674e3e50 Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Tue, 20 Sep 2022 14:52:43 +0300 Subject: [PATCH] remove useless variable --- client/windows/CAdvmapInterface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/windows/CAdvmapInterface.cpp b/client/windows/CAdvmapInterface.cpp index a060780b2..bddaa20a5 100644 --- a/client/windows/CAdvmapInterface.cpp +++ b/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;