summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-23 15:06:56 +0000
committerrubidium <rubidium@openttd.org>2009-01-23 15:06:56 +0000
commitaaad553233d95d68134d2eba573dc144d14d7f00 (patch)
tree672c125cc095db3db691e298d451435923f66498 /src/newgrf_gui.cpp
parenta88883c1c1b962b33ea4916ce0b1a7fc8967d7e3 (diff)
downloadopenttd-aaad553233d95d68134d2eba573dc144d14d7f00.tar.xz
(svn r15225) -Fix (r15126): searching for 'missing' NewGRFs gave the 'compatability loaded' NewGRF instead of the one that we're actually looking for
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 3596f52ec..727440b08 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -617,6 +617,7 @@ struct NewGRFWindow : public Window {
ttd_strlcpy(ci->name, c->name != NULL ? c->name : c->filename, lengthof(ci->name));
ci->unique_id = BSWAP32(c->grfid);
memcpy(ci->md5sum, c->md5sum, sizeof(ci->md5sum));
+ if (HasBit(c->flags, GCF_COMPATIBLE)) GamelogGetOriginalGRFMD5Checksum(c->grfid, ci->md5sum);
*cv.Append() = ci;
}
ShowNetworkContentListWindow(cv.Length() == 0 ? NULL : &cv, CONTENT_TYPE_NEWGRF);