Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/base/savegame.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/base/savegame.cc b/src/game/base/savegame.cc
index 616b85f..ca911ec 100644
--- a/src/game/base/savegame.cc
+++ b/src/game/base/savegame.cc
@@ -105,7 +105,9 @@ void SaveGame::load_game(core::Player *player, filesystem::IniFile & inifile)
continue;
} else if (inifile.got_key_string("spawn", str)) {
- if (str.size() < 3) {
+ if (!str.size()) {
+ continue;
+ } else if (str.size() < 3) {
inifile.unknown_error("spawn with invalid label '" + str + "'");
continue;
}
@@ -237,7 +239,9 @@ void SaveGame::load_game(core::Player *player, filesystem::IniFile & inifile)
if (!zone) {
zone = Default::zone;
}
-
+ if (!ship->spawn()) {
+ ship->set_spawn(zone->default_view());
+ }
if (!ship->spawn()) {
ship->set_spawn(Default::view);
}