Author: anonymissimus
Date: Sun Nov  6 03:00:06 2011
New Revision: 51879

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51879&view=rev
Log:
set objectives_changed to true only if [scenario]objectives= not blank (fix for 
bug #18927)

Modified:
    trunk/src/gamestatus.cpp

Modified: trunk/src/gamestatus.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gamestatus.cpp?rev=51879&r1=51878&r2=51879&view=diff
==============================================================================
--- trunk/src/gamestatus.cpp (original)
+++ trunk/src/gamestatus.cpp Sun Nov  6 03:00:06 2011
@@ -782,8 +782,9 @@
                log_step("objectives");
                // If this team has no objectives, set its objectives
                // to the level-global "objectives"
-               if (t_->objectives().empty())
-                       t_->set_objectives(level_["objectives"], false);
+               const config::attribute_value objectives = level_["objectives"];
+               if (!objectives.blank() && t_->objectives().empty())
+                       t_->set_objectives(objectives.t_str(), false);
        }
 
 


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

Reply via email to