(svn r20692) -Fix [FS#4055]: crash after downloading missing content

This commit is contained in:
yexo 2010-08-30 10:16:04 +00:00
parent 562df2803f
commit 9a05f8004b
2 changed files with 5 additions and 2 deletions

View File

@ -188,7 +188,8 @@ void NetworkAfterNewGRFScan()
item->info.compatible = false;
} else {
c->filename = f->filename;
c->name = f->name;
CleanUpGRFText(c->name);
c->name = DuplicateGRFText(f->name);
c->info = f->info;
c->status = GCS_UNKNOWN;
}

View File

@ -28,6 +28,7 @@
#include "../sortlist_type.h"
#include "../company_func.h"
#include "../core/geometry_func.hpp"
#include "../newgrf_text.h"
#include "table/strings.h"
#include "../table/sprites.h"
@ -811,7 +812,8 @@ public:
}
c->filename = f->filename;
c->name = f->name;
CleanUpGRFText(c->name);
c->name = DuplicateGRFText(f->name);
c->info = f->info;
c->status = GCS_UNKNOWN;
}