1
0
Fork 0

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

release/0.6
peter1138 2008-01-12 21:25:04 +00:00
parent e677814a4b
commit c7debf7908
1 changed files with 3 additions and 2 deletions

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;
} }