summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-03-03 18:47:46 +0000
committeryexo <yexo@openttd.org>2011-03-03 18:47:46 +0000
commit93533b603abf5423cadc0dd02b0ae31ec5b95f7b (patch)
tree00aa791096d399a24d36ab2078d93c6153a9b975 /src/newgrf.cpp
parent21cc2da71a4c0679c8ba31b5fc90c3850838ec34 (diff)
downloadopenttd-93533b603abf5423cadc0dd02b0ae31ec5b95f7b.tar.xz
(svn r22162) -Fix [FS#4533]: No update of NewGRF window when unknown GRF name becomes available
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 1a3e53fbc..86e92a81f 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -5382,11 +5382,11 @@ static void ScanInfo(ByteReader *buf)
/* GRF IDs starting with 0xFF are reserved for internal TTDPatch use */
if (GB(grfid, 24, 8) == 0xFF) SetBit(_cur_grfconfig->flags, GCF_SYSTEM);
- AddGRFTextToList(&_cur_grfconfig->name, 0x7F, grfid, name);
+ AddGRFTextToList(&_cur_grfconfig->name->text, 0x7F, grfid, name);
if (buf->HasData()) {
const char *info = buf->ReadString();
- AddGRFTextToList(&_cur_grfconfig->info, 0x7F, grfid, info);
+ AddGRFTextToList(&_cur_grfconfig->info->text, 0x7F, grfid, info);
}
/* GLS_INFOSCAN only looks for the action 8, so we can skip the rest of the file */
@@ -6466,14 +6466,14 @@ static void TranslateGRFStrings(ByteReader *buf)
/** Callback function for 'INFO'->'NAME' to add a translation to the newgrf name. */
static bool ChangeGRFName(byte langid, const char *str)
{
- AddGRFTextToList(&_cur_grfconfig->name, langid, _cur_grfconfig->ident.grfid, str);
+ AddGRFTextToList(&_cur_grfconfig->name->text, langid, _cur_grfconfig->ident.grfid, str);
return true;
}
/** Callback function for 'INFO'->'DESC' to add a translation to the newgrf description. */
static bool ChangeGRFDescription(byte langid, const char *str)
{
- AddGRFTextToList(&_cur_grfconfig->info, langid, _cur_grfconfig->ident.grfid, str);
+ AddGRFTextToList(&_cur_grfconfig->info->text, langid, _cur_grfconfig->ident.grfid, str);
return true;
}