Author: ilor
Date: Sun Apr  5 12:47:22 2009
New Revision: 34531

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34531&view=rev
Log:
fix a msvc build error and some c++ correctness

Modified:
    trunk/src/replay.cpp

Modified: trunk/src/replay.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/replay.cpp?rev=34531&r1=34530&r2=34531&view=diff
==============================================================================
--- trunk/src/replay.cpp (original)
+++ trunk/src/replay.cpp Sun Apr  5 12:47:22 2009
@@ -542,12 +542,12 @@
                }
                else
                {
-                       const config *child = &cmd_second.child("recruit");
-                       if (!*child) child = &cmd_second.child("recall");
-                       if (*child) {
+                       const config *chld = &cmd_second.child("recruit");
+                       if (!*chld) chld = &cmd_second.child("recall");
+                       if (*chld) {
                        // A unit is being un-recruited or un-recalled.
                        // Remove unsynced commands that would act on that unit.
-                       map_location src(*child, 
game_events::get_state_of_game());
+                       map_location src(*chld, 
game_events::get_state_of_game());
                        for 
(std::vector<config::child_list::const_iterator>::iterator async_cmd =
                                 async_cmds.begin(); async_cmd != 
async_cmds.end(); async_cmd++)
                        {


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to