From 6f549e54b57670a4b9e4121d0a2b453f9109bd42 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 2 Dec 2010 18:51:44 +0000 Subject: (svn r21369) -Fix: don't add object specs that weren't associate with graphics --- src/newgrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index fb8f8f331..5e6622ac0 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -7642,7 +7642,7 @@ static void FinaliseObjectsArray() ObjectSpec **&objectspec = (*file)->objectspec; if (objectspec != NULL) { for (int i = 0; i < NUM_OBJECTS; i++) { - if (objectspec[i] != NULL && objectspec[i]->enabled) { + if (objectspec[i] != NULL && objectspec[i]->grf_prop.grffile != NULL && objectspec[i]->enabled) { _object_mngr.SetEntitySpec(objectspec[i]); } } -- cgit v1.2.3-54-g00ecf