Author: silene
Date: Thu Feb 11 08:31:30 2010
New Revision: 41154
URL: http://svn.gna.org/viewcvs/wesnoth?rev=41154&view=rev
Log:
Fixed empty attributes being discarded at save time, as it may cause subtile
behavior differences when saving/reloading a game.
Modified:
trunk/src/serialization/parser.cpp
Modified: trunk/src/serialization/parser.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/serialization/parser.cpp?rev=41154&r1=41153&r2=41154&view=diff
==============================================================================
--- trunk/src/serialization/parser.cpp (original)
+++ trunk/src/serialization/parser.cpp Thu Feb 11 08:31:30 2010
@@ -411,6 +411,8 @@
{
bool first = true;
if (value.empty()) {
+ out << std::string(level, '\t') << key << AttributeEquals
+ << AttributeEndPostfix;;
return;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits