Author: ai0867
Date: Tue Jan 12 03:00:05 2010
New Revision: 40676

URL: http://svn.gna.org/viewcvs/wesnoth?rev=40676&view=rev
Log:
Another copy-construct to const reference

Modified:
    branches/fendrin_pathfind/src/pathfind.cpp

Modified: branches/fendrin_pathfind/src/pathfind.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/fendrin_pathfind/src/pathfind.cpp?rev=40676&r1=40675&r2=40676&view=diff
==============================================================================
--- branches/fendrin_pathfind/src/pathfind.cpp (original)
+++ branches/fendrin_pathfind/src/pathfind.cpp Tue Jan 12 03:00:05 2010
@@ -310,7 +310,7 @@
                pq.pop_back();
                n.in = search_counter;
 
-               std::set<map_location> allowed_teleports = 
teleports.get_adjacents(n.curr);
+               const std::set<map_location> &allowed_teleports = 
teleports.get_adjacents(n.curr);
                std::vector<map_location> locs(6 + allowed_teleports.size());
                std::copy(allowed_teleports.begin(), allowed_teleports.end(), 
locs.begin() + 6);
                get_adjacent_tiles(n.curr, &locs[0]);


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to