Skip to content

Commit

Permalink
Fix to issue with unit character saving for saved games
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrettin committed Dec 14, 2015
1 parent c863d26 commit 4bd3f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unit/unit_save.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ void SaveUnit(const CUnit &unit, CFile &file)
file.printf(",\n \"variation\", %d,", unit.Variation);
if (unit.Character != NULL) {
if (!unit.Character->Custom) {
file.printf(",\n \"character\", %d,", unit.Character->GetFullName());
file.printf(",\n \"character\", %d,", unit.Character->GetFullName().c_str());
} else {
file.printf(",\n \"custom-hero\", %d,", unit.Character->GetFullName());
file.printf(",\n \"custom-hero\", %d,", unit.Character->GetFullName().c_str());
}
}
//Wyrmgus end
Expand Down

0 comments on commit 4bd3f97

Please sign in to comment.