diff --git a/src/newgrf_object.cpp b/src/newgrf_object.cpp --- a/src/newgrf_object.cpp +++ b/src/newgrf_object.cpp @@ -113,6 +113,12 @@ template +bool NewGRFClass::IsUIAvailable(uint index) const +{ + return this->GetSpec(index)->IsEverAvailable(); +} + INSTANTIATE_NEWGRF_CLASS_METHODS(ObjectClass, ObjectSpec, ObjectClassID, OBJECT_CLASS_MAX)