Author: suokko
Date: Tue Sep 9 22:34:20 2008
New Revision: 29362
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29362&view=rev
Log:
Fixed bug that data isn't loaded if defines map is empty
Modified:
trunk/src/game.cpp
Modified: trunk/src/game.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=29362&r1=29361&r2=29362&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Tue Sep 9 22:34:20 2008
@@ -1408,7 +1408,8 @@
void game_controller::load_game_cfg()
{
gui::set_background_dirty();
- if (old_defines_map_ == cache_.get_preproc_map())
+ if (!game_config.empty()
+ && old_defines_map_ == cache_.get_preproc_map())
return; // game_config already holds requested config in memory
old_defines_map_ = cache_.get_preproc_map();
loadscreen::global_loadscreen_manager
loadscreen_manager(disp().video());
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits