1
0
Fork 0

(svn r21369) -Fix: don't add object specs that weren't associate with graphics

release/1.1
rubidium 2010-12-02 18:51:44 +00:00
parent 654f475983
commit 6f549e54b5
1 changed files with 1 additions and 1 deletions

View File

@ -7642,7 +7642,7 @@ static void FinaliseObjectsArray()
ObjectSpec **&objectspec = (*file)->objectspec; ObjectSpec **&objectspec = (*file)->objectspec;
if (objectspec != NULL) { if (objectspec != NULL) {
for (int i = 0; i < NUM_OBJECTS; i++) { 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]); _object_mngr.SetEntitySpec(objectspec[i]);
} }
} }