Author: silene
Date: Sun Apr 5 11:44:15 2009
New Revision: 34525
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34525&view=rev
Log:
Removed config::all_children.
Modified:
trunk/src/replay.cpp
Modified: trunk/src/replay.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/replay.cpp?rev=34525&r1=34524&r2=34525&view=diff
==============================================================================
--- trunk/src/replay.cpp (original)
+++ trunk/src/replay.cpp Sun Apr 5 11:44:15 2009
@@ -820,10 +820,11 @@
return false;
}
+ config::all_children_itors ch_itors = cfg->all_children_range();
//if there is an empty command tag, create by pre_replay() or a
start tag
- else if ( (cfg->all_children().size() == 0) ||
(cfg->child("start") != NULL) ){
+ if (ch_itors.first == ch_itors.second || cfg->child("start"))
+ {
//do nothing
-
}
else if (const config &child = cfg->child("speak"))
{
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits