Author: tschmitz
Date: Sat Aug 20 22:39:20 2011
New Revision: 50867
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50867&view=rev
Log:
Shot-in-the-dark fix for bug #18525 (whiteboard recruit crash).
Modified:
trunk/src/mouse_events.cpp
Modified: trunk/src/mouse_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/mouse_events.cpp?rev=50867&r1=50866&r2=50867&view=diff
==============================================================================
--- trunk/src/mouse_events.cpp (original)
+++ trunk/src/mouse_events.cpp Sat Aug 20 22:39:20 2011
@@ -213,6 +213,8 @@
gui().clear_attack_indicator();
}
+ unit* un; //will later point to unit at mouseover_hex_
+
// the destination is the pointed hex or the adjacent hex
// used to attack it
map_location dest;
@@ -248,11 +250,7 @@
}
}
}
- } // end planned unit map scope
-
- unit* un;
- { // start planned unit map scope
- wb::scoped_planned_unit_map planned_unit_map;
+
unit_map::iterator iter = mouseover_unit;
if (iter != units_.end())
un = &*iter;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits