mail[Wesnoth-commits] r20204 - /trunk/src/multiplayer_wait.cpp


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

Header


Content

Posted by patrick_X99 on September 08, 2007 - 16:59:
Author: sapient
Date: Sat Sep  8 16:58:39 2007
New Revision: 20204

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20204&view=rev
Log:
make multiplayer_wait guard against no "era" child being there (Soliton found 
a crash there)

Modified:
    trunk/src/multiplayer_wait.cpp

Modified: trunk/src/multiplayer_wait.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/multiplayer_wait.cpp?rev=20204&r1=20203&r2=20204&view=diff
==============================================================================
--- trunk/src/multiplayer_wait.cpp (original)
+++ trunk/src/multiplayer_wait.cpp Sat Sep  8 16:58:39 2007
@@ -290,7 +290,9 @@
 {
        // add era events
        const config* const era_cfg = level_.child("era");
-       game_events::add_events(era_cfg->get_children("event"),"all");
+       if(era_cfg != NULL) {
+               game_events::add_events(era_cfg->get_children("event"),"all");
+       }
 
        config const * const stats = level_.child("statistics");
        if(stats != NULL) {




Related Messages


Powered by MHonArc, Updated Sat Sep 08 19:20:27 2007