Author: anonymissimus
Date: Tue Oct 25 01:35:09 2011
New Revision: 51618
URL: http://svn.gna.org/viewcvs/wesnoth?rev=51618&view=rev
Log:
changed code order (fix for bug #18778)
Was a small mistake in r50710.
Modified:
trunk/src/menu_events.cpp
Modified: trunk/src/menu_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/menu_events.cpp?rev=51618&r1=51617&r2=51618&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Tue Oct 25 01:35:09 2011
@@ -3484,8 +3484,8 @@
if (events::commands_disabled > 0)
return;
unit_map::iterator i = menu_handler_.current_unit();
+ if (i == menu_handler_.units_.end()) return;
const map_location loc = i->get_location();
- if (i == menu_handler_.units_.end()) return;
const std::string data = get_data(1);
std::vector<std::string> parameters = utils::split(data, '=',
utils::STRIP_SPACES);
if (parameters.size() < 2)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits