diff options
author | rubidium <rubidium@openttd.org> | 2010-12-02 18:51:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-02 18:51:44 +0000 |
commit | 6f549e54b57670a4b9e4121d0a2b453f9109bd42 (patch) | |
tree | f85cebbf72bf10ad103d1059510b566363a7e5fc | |
parent | 654f47598373fab555d434a15597644e08b09b8c (diff) | |
download | openttd-6f549e54b57670a4b9e4121d0a2b453f9109bd42.tar.xz |
(svn r21369) -Fix: don't add object specs that weren't associate with graphics
-rw-r--r-- | src/newgrf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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]); } } |