diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/saveload/game_sl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/saveload/game_sl.cpp b/src/saveload/game_sl.cpp index 6b93a46ea..91b108c56 100644 --- a/src/saveload/game_sl.cpp +++ b/src/saveload/game_sl.cpp @@ -158,6 +158,13 @@ static void Load_GSTR() *_current_data->raw_strings.Append() = ls; } + /* If there were no strings in the savegame, set GameStrings to NULL */ + if (_current_data->raw_strings.Length() == 0) { + delete _current_data; + _current_data = NULL; + return; + } + _current_data->Compile(); ReconsiderGameScriptLanguage(); } |