Sfoglia il codice sorgente

remove not needed var

Laserlicht 4 mesi fa
parent
commit
c928acfc25
1 ha cambiato i file con 1 aggiunte e 6 eliminazioni
  1. 1 6
      client/adventureMap/AdventureMapShortcuts.cpp

+ 1 - 6
client/adventureMap/AdventureMapShortcuts.cpp

@@ -459,12 +459,7 @@ void AdventureMapShortcuts::zoom( int distance)
 }
 
 void AdventureMapShortcuts::search(bool next)
-{
-	// get all relevant objects
-	std::vector<ObjectInstanceID> visitableObjInstances;
-	for(auto & obj : GAME->interface()->cb->getAllVisitableObjs())
-		visitableObjInstances.push_back(obj->id);
-	
+{	
 	auto getColor = [](MapObjectID id ){
 		switch (id)
 		{