wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src game.cpp


From: David White
Subject: [Wesnoth-cvs-commits] wesnoth/src game.cpp
Date: Tue, 23 Nov 2004 18:33:44 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    04/11/23 23:27:49

Modified files:
        src            : game.cpp 

Log message:
        attempt to fix possible core dump after installing a new campaign from 
the server

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/game.cpp.diff?tr1=1.165&tr2=1.166&r1=text&r2=text

Patches:
Index: wesnoth/src/game.cpp
diff -u wesnoth/src/game.cpp:1.165 wesnoth/src/game.cpp:1.166
--- wesnoth/src/game.cpp:1.165  Sun Nov 21 22:05:30 2004
+++ wesnoth/src/game.cpp        Tue Nov 23 23:27:49 2004
@@ -1,4 +1,4 @@
-/* $Id: game.cpp,v 1.165 2004/11/21 22:05:30 silene Exp $ */
+/* $Id: game.cpp,v 1.166 2004/11/23 23:27:49 Sirp Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -561,7 +561,8 @@
 }
 
 bool game_controller::init_config()
-{
+{
+       units_data_.clear();
        defines_map_.clear();
 
        //load in the game's configuration files
@@ -590,7 +591,7 @@
 
        hotkey::load_hotkeys(game_config_);
 
-       paths_manager_.set_paths(game_config_);
+       paths_manager_.set_paths(game_config_);
 
        const config* const units = game_config_.child("units");
        if(units != NULL) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]