mail[Wesnoth-commits] r43255 - /trunk/src/unit.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by gabrielmorin on June 10, 2010 - 04:58:
Author: gabba
Date: Thu Jun 10 04:58:53 2010
New Revision: 43255

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43255&view=rev
Log:
Made temporary_unit_mover and temporary_unit_placer make copies of 
map_locations
instead of keeping references.

Modified:
    trunk/src/unit.hpp

Modified: trunk/src/unit.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.hpp?rev=43255&r1=43254&r2=43255&view=diff
==============================================================================
--- trunk/src/unit.hpp (original)
+++ trunk/src/unit.hpp Thu Jun 10 04:58:53 2010
@@ -528,7 +528,7 @@
 
 private:
        unit_map& m_;
-       const map_location& loc_;
+       const map_location loc_;
        unit *temp_;
 };
 
@@ -544,8 +544,8 @@
 
 private:
        unit_map& m_;
-       const map_location& src_;
-       const map_location& dst_;
+       const map_location src_;
+       const map_location dst_;
        unit *temp_;
 };
 




Related Messages


Powered by MHonArc, Updated Thu Jun 10 05:00:28 2010