summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2017-01-07 21:20:02 +0000
committerfrosch <frosch@openttd.org>2017-01-07 21:20:02 +0000
commit5267b60027ade83871dc74fe3d04b1336d433dda (patch)
treebd2ee1bbca6bb7776f32b7872a0848c7837bb10d
parentb6b02108f7c09f1c9d64171eab90f9b6528ae243 (diff)
downloadopenttd-5267b60027ade83871dc74fe3d04b1336d433dda.tar.xz
(svn r27722) -Fix (r7490): GCF_SYSTEM was never set correctly.
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 3f4a8db6f..8577cb40e 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -6199,7 +6199,7 @@ 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);
+ if (GB(grfid, 0, 8) == 0xFF) SetBit(_cur.grfconfig->flags, GCF_SYSTEM);
AddGRFTextToList(&_cur.grfconfig->name->text, 0x7F, grfid, false, name);