mail[Wesnoth-commits] r44901 - /trunk/src/whiteboard/validate_visitor.cpp


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

Header


Content

Posted by gabrielmorin on July 30, 2010 - 04:01:
Author: gabba
Date: Fri Jul 30 04:01:48 2010
New Revision: 44901

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44901&view=rev
Log:
Whiteboard/recruit: automatically erase invalid recruits.

Modified:
    trunk/src/whiteboard/validate_visitor.cpp

Modified: trunk/src/whiteboard/validate_visitor.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/validate_visitor.cpp?rev=44901&r1=44900&r2=44901&view=diff
==============================================================================
--- trunk/src/whiteboard/validate_visitor.cpp (original)
+++ trunk/src/whiteboard/validate_visitor.cpp Fri Jul 30 04:01:48 2010
@@ -194,6 +194,11 @@
                LOG_WB << "Recruit set as invalid, team doesn't have enough 
gold.\n";
                recruit->set_valid(false);
        }
+
+       if (!recruit->is_valid())
+       {
+               actions_to_erase_.insert(recruit);
+       }
 }
 
 }//end namespace wb




Related Messages


Powered by MHonArc, Updated Fri Jul 30 04:20:26 2010