Fix e66cec8f86
: Permit loading of industry production callback with invalid cargo type.
It is only an error if the invalid result is actually used. This will be silently ignored at the moment. It is still an error if a duplicate cargo type is returned.
This commit is contained in:
@@ -277,7 +277,7 @@ struct TileLayoutSpriteGroup : SpriteGroup {
|
||||
struct IndustryProductionSpriteGroup : SpriteGroup {
|
||||
IndustryProductionSpriteGroup() : SpriteGroup(SGT_INDUSTRY_PRODUCTION) {}
|
||||
|
||||
uint8 version;
|
||||
uint8 version; ///< Production callback version used, or 0xFF if marked invalid
|
||||
uint8 num_input; ///< How many subtract_input values are valid
|
||||
int16 subtract_input[INDUSTRY_NUM_INPUTS]; ///< Take this much of the input cargo (can be negative, is indirect in cb version 1+)
|
||||
CargoID cargo_input[INDUSTRY_NUM_INPUTS]; ///< Which input cargoes to take from (only cb version 2)
|
||||
|
Reference in New Issue
Block a user