Mercurial > hg > openttd
changeset 8260:5b1a8515df51 draft
(svn r11824) -Fix (r11822): Converting signs from TTD games incomplete
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Sat, 12 Jan 2008 21:25:04 +0000 |
parents | 184c94f920a6 |
children | 1cbd903f1000 |
files | src/oldloader.cpp |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -1264,10 +1264,11 @@ 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; }