forked from mirror/OpenTTD
(svn r11758) -Fix(ette): Populate 'void' cargo slots (unused slots in temperate and arctic) with default data as per pre-newcargo support. These slots are still disabled by default, but some NewGRFs (erroneously?) expect the default data.
This commit is contained in:
@@ -37,7 +37,7 @@ void SetupCargoForClimate(LandscapeID l)
|
||||
if (cl < lengthof(_default_cargo)) {
|
||||
/* Copy the indexed cargo */
|
||||
_cargo[i] = _default_cargo[cl];
|
||||
SetBit(_cargo_mask, i);
|
||||
if (_cargo[i].bitnum != INVALID_CARGO) SetBit(_cargo_mask, i);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user