* Get the NIFeature related to the window number. * @param window_number The window to get the NIFeature for. * @return the NIFeature, or nullptr is there isn't one. */
| 238 | * @return the NIFeature, or nullptr is there isn't one. |
| 239 | */ |
| 240 | static inline const NIFeature *GetFeature(uint window_number) |
| 241 | { |
| 242 | GrfSpecFeature idx = GetFeatureNum(window_number); |
| 243 | return idx < GSF_FAKE_END ? _nifeatures[idx] : nullptr; |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Get the NIHelper related to the window number. |
no test coverage detected