(svn r11824) -Fix (r11822): Converting signs from TTD games incomplete

This commit is contained in:
peter1138 2008-01-12 21:25:04 +00:00
parent e677814a4b
commit c7debf7908

View File

@ -1264,10 +1264,11 @@ static const OldChunks sign_chunk[] = {
static bool LoadOldSign(LoadgameState *ls, int num) 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); _old_string_id = RemapOldStringID(_old_string_id);
// XXX copy if custom name$$$ si->name = CopyFromOldName(_old_string_id);
return true; return true;
} }