summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-12-06 00:29:27 +0100
committerGitHub <noreply@github.com>2020-12-06 00:29:27 +0100
commitc558936ec3223f95677e182da1325717f8163ef6 (patch)
treeae5f8b18d75c45b74c869928f6a5e2cb850d19f5 /src/saveload
parent6ad3cca4caff8f1a45f96c69e1193a97dc072cc3 (diff)
downloadopenttd-c558936ec3223f95677e182da1325717f8163ef6.tar.xz
Fix 63ccb36ef3: Crash trying to load TTO/TTD savegames. (#8356)
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/oldloader_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp
index 402c1c5cc..fa7685731 100644
--- a/src/saveload/oldloader_sl.cpp
+++ b/src/saveload/oldloader_sl.cpp
@@ -445,7 +445,7 @@ static bool FixTTOEngines()
e->preview_company = INVALID_COMPANY;
e->preview_asked = (CompanyMask)-1;
e->preview_wait = 0;
- e->name = nullptr;
+ e->name = std::string{};
}
return true;