(svn r15137) -Fix (r11822)(r14340): signs with sign 'Sign' were lost when converting from TTD savegames

This commit is contained in:
smatz
2009-01-18 16:20:04 +00:00
parent 730ceecb8b
commit 9cc64bfa21
3 changed files with 14 additions and 21 deletions

View File

@@ -1145,8 +1145,11 @@ static bool LoadOldSign(LoadgameState *ls, int num)
Sign *si = new (num) Sign();
if (!LoadChunk(ls, si, sign_chunk)) return false;
_old_string_id = RemapOldStringID(_old_string_id);
si->name = CopyFromOldName(_old_string_id);
if (_old_string_id != 0) {
_old_string_id = RemapOldStringID(_old_string_id);
si->name = CopyFromOldName(_old_string_id);
si->owner = OWNER_NONE;
}
return true;
}