summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-06-18 18:13:38 +0000
committersmatz <smatz@openttd.org>2009-06-18 18:13:38 +0000
commit0961668e142bd7e6ab09d896b7888a2056e9606c (patch)
treedc05b5f5ffc3dd924684c4e20c50b3a9cfede06f /src/saveload
parentca15d98db3f11d48bc45639496cae61b4c52d6be (diff)
downloadopenttd-0961668e142bd7e6ab09d896b7888a2056e9606c.tar.xz
(svn r16596) -Fix (r16378): there were several hundreds of empty signs above tile 0 after loading TTO/TTD savegame
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/oldloader_sl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp
index 66b8cd085..3ce4fc81b 100644
--- a/src/saveload/oldloader_sl.cpp
+++ b/src/saveload/oldloader_sl.cpp
@@ -1420,6 +1420,8 @@ static bool LoadOldSign(LoadgameState *ls, int num)
si->name = CopyFromOldName(RemapOldStringID(_old_string_id));
}
si->owner = OWNER_NONE;
+ } else {
+ delete si;
}
return true;