Verity that the data stored a valid VehicleType value */
| 203 | |
| 204 | /** Verity that the data stored a valid VehicleType value */ |
| 205 | bool StoryPageButtonData::ValidateVehicleType() const |
| 206 | { |
| 207 | uint8_t vehtype = GB(this->referenced_id, 16, 8); |
| 208 | return vehtype == VEH_INVALID || vehtype < VEH_COMPANY_END; |
| 209 | } |
| 210 | |
| 211 | /** |
| 212 | * Create a new story page. |
no test coverage detected