Author: alink
Date: Wed May 13 05:46:28 2009
New Revision: 35616
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35616&view=rev
Log:
revert one line of r35513 causing some advance_from in help
for the advancement tree of the units present on map when starting
Modified:
branches/1.6/src/unit_types.cpp
Modified: branches/1.6/src/unit_types.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/unit_types.cpp?rev=35616&r1=35615&r2=35616&view=diff
==============================================================================
--- branches/1.6/src/unit_types.cpp (original)
+++ branches/1.6/src/unit_types.cpp Wed May 13 05:46:28 2009
@@ -1287,11 +1287,11 @@
}
case unit_type::HELP_INDEX: {
//build the stuff that is needed to feed the help index
+ const config& unit_cfg = find_config(key);
if ( (ut->second.build_status() == unit_type::NOT_BUILT) ||
(ut->second.build_status() == unit_type::CREATED) ) {
- const config& unit_cfg = find_config(key);
- ut->second.build_help_index(unit_cfg, movement_types_, races_,
unit_traits_);
- add_advancefrom(unit_cfg);
+ ut->second.build_help_index(unit_cfg,
movement_types_, races_, unit_traits_);
}
+ add_advancefrom(unit_cfg);
break;
}
case unit_type::WITHOUT_ANIMATIONS:
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits