Author: baufo
Date: Mon Mar 24 10:37:12 2008
New Revision: 25053

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25053&view=rev
Log:
Fixing bug that caused user_handler to crash when iterating over all users_

Modified:
    branches/mp_registration/src/server/user_handler.cpp

Modified: branches/mp_registration/src/server/user_handler.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/mp_registration/src/server/user_handler.cpp?rev=25053&r1=25052&r2=25053&view=diff
==============================================================================
--- branches/mp_registration/src/server/user_handler.cpp (original)
+++ branches/mp_registration/src/server/user_handler.cpp Mon Mar 24 10:37:12 
2008
@@ -342,7 +342,10 @@
 }
 
 bool user_handler::user_exists(const std::string& name) {
-    return (users_[name]);
+    std::map<std::string,std::string*>::const_iterator u =
+            users_.find(name);
+
+    return (u != users_.end());
 }
 
 bool user_handler::mail() {


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

Reply via email to