mail[Wesnoth-commits] r34137 - /branches/1.6/src/server/game.cpp


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

Header


Content

Posted by soliton . de on March 26, 2009 - 01:40:
Author: soliton
Date: Thu Mar 26 01:40:52 2009
New Revision: 34137

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34137&view=rev
Log:
.. for all game members

Modified:
    branches/1.6/src/server/game.cpp

Modified: branches/1.6/src/server/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/server/game.cpp?rev=34137&r1=34136&r2=34137&view=diff
==============================================================================
--- branches/1.6/src/server/game.cpp (original)
+++ branches/1.6/src/server/game.cpp Thu Mar 26 01:40:52 2009
@@ -83,8 +83,9 @@
 
 game::~game()
 {
-       for (user_vector::const_iterator p = players_.begin(); p != 
players_.end(); ++p) {
-               remove_player(*p, false, true);
+       user_vector users = all_game_users();
+       for (user_vector::const_iterator u = users.begin(); u != users.end(); 
++u) {
+               remove_player(*u, false, true);
        }
        for(std::vector<simple_wml::document*>::iterator i = 
history_.begin(); i != history_.end(); ++i) {
                delete *i;




Related Messages


Powered by MHonArc, Updated Thu Mar 26 02:00:27 2009