summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-02 18:51:44 +0000
committerrubidium <rubidium@openttd.org>2010-12-02 18:51:44 +0000
commit6f549e54b57670a4b9e4121d0a2b453f9109bd42 (patch)
treef85cebbf72bf10ad103d1059510b566363a7e5fc
parent654f47598373fab555d434a15597644e08b09b8c (diff)
downloadopenttd-6f549e54b57670a4b9e4121d0a2b453f9109bd42.tar.xz
(svn r21369) -Fix: don't add object specs that weren't associate with graphics
-rw-r--r--src/newgrf.cpp2
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]);
}
}