diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-12 21:25:04 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-12 21:25:04 +0000 |
commit | c7debf79086300d6ec7ded3973f4d506b5ed2aef (patch) | |
tree | c5fab2916482def78ca63f845da0ec608aaaca84 /src | |
parent | e677814a4bb0a379e8c404f9a1489f8dcb76442d (diff) | |
download | openttd-c7debf79086300d6ec7ded3973f4d506b5ed2aef.tar.xz |
(svn r11824) -Fix (r11822): Converting signs from TTD games incomplete
Diffstat (limited to 'src')
-rw-r--r-- | src/oldloader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp index bf2000506..89330fd68 100644 --- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -1264,10 +1264,11 @@ static const OldChunks sign_chunk[] = { static bool LoadOldSign(LoadgameState *ls, int num) { - if (!LoadChunk(ls, new (num) Sign(), sign_chunk)) return false; + Sign *si = new (num) Sign(); + if (!LoadChunk(ls, si, sign_chunk)) return false; _old_string_id = RemapOldStringID(_old_string_id); - // XXX copy if custom name$$$ + si->name = CopyFromOldName(_old_string_id); return true; } |