mirror of https://github.com/OpenTTD/OpenTTD
Fix: [NewGRF] AI station construction callback did not work for stations with ID >= 0x100.
parent
e2084bbdcd
commit
f5a9eae8b1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue