mail[Wesnoth-commits] r24867 - /trunk/src/replay.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by bruno on March 19, 2008 - 18:44:
Author: brunowolff
Date: Wed Mar 19 18:44:45 2008
New Revision: 24867

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24867&view=rev
Log:
Silence gcc 4.3 warning by adding parens around && clause near ||.

Modified:
    trunk/src/replay.cpp

Modified: trunk/src/replay.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/replay.cpp?rev=24867&r1=24866&r2=24867&view=diff
==============================================================================
--- trunk/src/replay.cpp (original)
+++ trunk/src/replay.cpp Wed Mar 19 18:44:45 2008
@@ -534,7 +534,7 @@
        // even if not marked explicitely with undo=no.
        //! @todo Change undo= to default to "no" and explicitely mark all
        //! undoable commands with yes.
-       while(cmd.first != cmd.second && (**(cmd.second-1))["undo"] == "no"
+       while((cmd.first != cmd.second && (**(cmd.second-1))["undo"] == "no")
                || (**(cmd.second-1))["async"] == "yes"
                || (**(cmd.second-1))["sent"] == "yes")
        {




Related Messages


Powered by MHonArc, Updated Wed Mar 19 19:02:19 2008