Author: ai0867
Date: Fri Jan 15 03:42:22 2010
New Revision: 40703
URL: http://svn.gna.org/viewcvs/wesnoth?rev=40703&view=rev
Log:
Constify gamemap::tunnels()
Modified:
branches/fendrin_pathfind/src/map.hpp
branches/fendrin_pathfind/src/pathfind.cpp
Modified: branches/fendrin_pathfind/src/map.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/fendrin_pathfind/src/map.hpp?rev=40703&r1=40702&r2=40703&view=diff
==============================================================================
--- branches/fendrin_pathfind/src/map.hpp (original)
+++ branches/fendrin_pathfind/src/map.hpp Fri Jan 15 03:42:22 2010
@@ -190,7 +190,7 @@
//TODO
/** Return a vector of the locations of tunnels on the game_map. */
- std::vector<teleport_group>& tunnels() { return tunnels_; }
+ const std::vector<teleport_group>& tunnels() const { return tunnels_; }
/**
* Defines a oneway tunnel between the source and the destination
location.
Modified: branches/fendrin_pathfind/src/pathfind.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/fendrin_pathfind/src/pathfind.cpp?rev=40703&r1=40702&r2=40703&view=diff
==============================================================================
--- branches/fendrin_pathfind/src/pathfind.cpp (original)
+++ branches/fendrin_pathfind/src/pathfind.cpp Fri Jan 15 03:42:22 2010
@@ -194,7 +194,7 @@
groups.push_back(village_group);
- std::vector<teleport_group>& custom_groups =
resources::game_map->tunnels();
+ const std::vector<teleport_group>& custom_groups =
resources::game_map->tunnels();
groups.insert(groups.end(), custom_groups.begin(), custom_groups.end());
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits