Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/savegame.cc')
-rw-r--r--src/game/base/savegame.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/base/savegame.cc b/src/game/base/savegame.cc
index 90b7956..28f0ddb 100644
--- a/src/game/base/savegame.cc
+++ b/src/game/base/savegame.cc
@@ -99,6 +99,8 @@ void SaveGame::load_game(core::Player *player, filesystem::IniFile & inifile)
} else if (inifile.got_key_float("reputation", reputation)) {
if (!faction) {
inifile.unknown_error("reputation without faction");
+ } else if (faction == Faction::default_faction()) {
+ inifile.unknown_error("ignoring reputation for default faction");
} else {
player->reputation().set_reputation(faction, reputation);
}