[-] Fixed savegame bug.

This commit is contained in:
cybermind 2015-02-12 16:24:39 +05:00
parent 3b0cb65893
commit 2ef346636f

View file

@ -71,13 +71,13 @@
/* virtual */ void COrder_Research::Save(CFile &file, const CUnit &unit) const
{
file.printf("{\"action-research\"");
file.printf("{\"action-research\",");
if (this->Finished) {
file.printf(" \"finished\", ");
}
if (this->Upgrade) {
file.printf(", \"upgrade\", \"%s\"", this->Upgrade->Ident.c_str());
file.printf(" \"upgrade\", \"%s\"", this->Upgrade->Ident.c_str());
}
file.printf("}");
}