mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 09:29:10 +00:00
(svn r21369) -Fix: don't add object specs that weren't associate with graphics
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user