1
0
Fork 0

Fix: [NewGRF] AI station construction callback did not work for stations with ID >= 0x100.

pull/14142/head
frosch 2025-04-28 19:07:23 +02:00
parent 25577689b7
commit d3f03f1cc8
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ std::pair<const GRFFile *, uint16_t> GetAiPurchaseCallbackResult(uint8_t feature
object.generic_scope.feature = feature;
auto callback = GetGenericCallbackResult(feature, object, 0, 0);
if (callback.second != CALLBACK_FAILED) callback.second = GB(callback.second, 0, 8);
if (callback.second != CALLBACK_FAILED && callback.first->grf_version < 8) callback.second = GB(callback.second, 0, 8);
return callback;
}