diff --git a/game/dcs/groundunittype.py b/game/dcs/groundunittype.py index ff03702d..7cf92fcf 100644 --- a/game/dcs/groundunittype.py +++ b/game/dcs/groundunittype.py @@ -45,6 +45,8 @@ class GroundUnitType(UnitType[VehicleType]): @classmethod def for_dcs_type(cls, dcs_unit_type: Type[VehicleType]) -> Iterator[GroundUnitType]: + if not cls._loaded: + cls._load_all() yield from cls._by_unit_type[dcs_unit_type] @staticmethod