Author: alink
Date: Sat May 16 19:31:51 2009
New Revision: 35656

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35656&view=rev
Log:
Fix error in previous commit

Modified:
    trunk/src/display.cpp

Modified: trunk/src/display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=35656&r1=35655&r2=35656&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Sat May 16 19:31:51 2009
@@ -2336,8 +2336,11 @@
 
        bool has_inval = false;
        std::set<map_location>::const_iterator i = locs.begin();
-       for(; i != locs.end() && !has_inval; ++i) {
-               has_inval = invalidated_.count(*i);
+       for(; i != locs.end(); ++i) {
+               if (invalidated_.count(*i)) {
+                       has_inval = true;
+                       break; // 'i' will be used later
+               }
        }
 
        // if no invalidation or one but nothing to propagate, return false


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

Reply via email to