Author: crab
Date: Mon Nov 7 21:03:55 2011
New Revision: 51922
URL: http://svn.gna.org/viewcvs/wesnoth?rev=51922&view=rev
Log:
Fixed Bug #18918: the create unit dialog was sometimes capturing village
incorrectly
Modified:
trunk/changelog
trunk/src/menu_events.cpp
Modified: trunk/changelog
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=51922&r1=51921&r2=51922&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Mon Nov 7 21:03:55 2011
@@ -1,4 +1,7 @@
Version 1.9.10+svn:
+ * Engine:
+ * Fixed bug #18918: the create unit dialog was sometimes capturing village
+ incorrectly
* Language and i18n:
* Updated translations:
Modified: trunk/src/menu_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/menu_events.cpp?rev=51922&r1=51921&r2=51922&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Mon Nov 7 21:03:55 2011
@@ -1601,7 +1601,7 @@
unit chosen(type, 1, true, gender);
chosen.new_turn();
- const map_location& loc = mousehandler.get_last_hex();
+ const map_location loc = mousehandler.get_last_hex();
units_.replace(loc, chosen);
unit_display::unit_recruited(loc);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits