Merge branch 'master' into jgrpp
# Conflicts: # src/core/bitmath_func.cpp # src/core/bitmath_func.hpp # src/core/geometry_type.hpp # src/game/game_text.hpp # src/graph_gui.cpp # src/pathfinder/npf/npf.cpp # src/script/api/script_text.cpp # src/spritecache.cpp # src/track_func.h
This commit is contained in:
@@ -10825,13 +10825,13 @@ static void FinaliseEngineArray()
|
||||
}
|
||||
|
||||
/** Check for invalid cargoes */
|
||||
static void FinaliseCargoArray()
|
||||
void FinaliseCargoArray()
|
||||
{
|
||||
for (CargoSpec *cs : CargoSpec::Iterate()) {
|
||||
if (!cs->IsValid()) {
|
||||
cs->name = cs->name_single = cs->units_volume = STR_NEWGRF_INVALID_CARGO;
|
||||
cs->quantifier = STR_NEWGRF_INVALID_CARGO_QUANTITY;
|
||||
cs->abbrev = STR_NEWGRF_INVALID_CARGO_ABBREV;
|
||||
for (CargoSpec &cs : CargoSpec::array) {
|
||||
if (!cs.IsValid()) {
|
||||
cs.name = cs.name_single = cs.units_volume = STR_NEWGRF_INVALID_CARGO;
|
||||
cs.quantifier = STR_NEWGRF_INVALID_CARGO_QUANTITY;
|
||||
cs.abbrev = STR_NEWGRF_INVALID_CARGO_ABBREV;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user