Codechange: [ContentInfo] Use std::string instead of string buffers
This commit is contained in:
@@ -1550,7 +1550,7 @@ void ShowMissingContentWindow(const GRFConfig *list)
|
||||
ContentInfo *ci = new ContentInfo();
|
||||
ci->type = CONTENT_TYPE_NEWGRF;
|
||||
ci->state = ContentInfo::DOES_NOT_EXIST;
|
||||
strecpy(ci->name, c->GetName(), lastof(ci->name));
|
||||
ci->name = c->GetName();
|
||||
ci->unique_id = BSWAP32(c->ident.grfid);
|
||||
memcpy(ci->md5sum, HasBit(c->flags, GCF_COMPATIBLE) ? c->original_md5sum : c->ident.md5sum, sizeof(ci->md5sum));
|
||||
cv.push_back(ci);
|
||||
|
Reference in New Issue
Block a user