CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Kristoffer Erlandsson <[EMAIL PROTECTED]>       04/09/03 
19:34:05

Modified files:
        src            : help.cpp 

Log message:
        Fixed a bug where the help would be empty upon reloads (CVS only)

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

Patches:
Index: wesnoth/src/help.cpp
diff -u wesnoth/src/help.cpp:1.31 wesnoth/src/help.cpp:1.32
--- wesnoth/src/help.cpp:1.31   Mon Aug 30 17:46:28 2004
+++ wesnoth/src/help.cpp        Fri Sep  3 19:34:05 2004
@@ -283,6 +283,10 @@
        map = NULL;
        toplevel.clear();
        hidden_sections.clear();
+    // These last numbers must be reset so that the content is regenreated.
+    // Upon next start.
+       last_num_encountered_units = -1;
+       last_num_encountered_terrains = -1;
 }
 
 bool section_is_referenced(const std::string &section_id, const config &cfg) {


Reply via email to