Changeset - r20993:7c596bb433ad
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-23 18:08:15
rubidium@openttd.org
(svn r26067) -Fix: possible NULL dereference when getting NewGRF version
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -6578,7 +6578,7 @@ static void ParamSet(ByteReader *buf)
 
				/* Disable the read GRF if it is a static NewGRF. */
 
				DisableStaticNewGRFInfluencingNonStaticNewGRFs(c);
 
				src1 = 0;
 
			} else if (file == NULL || (c != NULL && c->status == GCS_DISABLED)) {
 
			} else if (file == NULL || c == NULL || c->status == GCS_DISABLED) {
 
				src1 = 0;
 
			} else if (src1 == 0xFE) {
 
				src1 = c->version;
0 comments (0 inline, 0 general)