(svn r16853) -Codechange: make CargoSpec const at two places

This commit is contained in:
smatz
2009-07-16 21:37:59 +00:00
parent 77d13eae61
commit f16314d0cc
2 changed files with 5 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ void SetupCargoForClimate(LandscapeID l)
CargoID GetCargoIDByLabel(CargoLabel cl)
{
CargoSpec *cs;
const CargoSpec *cs;
FOR_ALL_CARGOSPECS(cs) {
if (cs->label == cl) return cs->Index();
}
@@ -74,7 +74,7 @@ CargoID GetCargoIDByBitnum(uint8 bitnum)
{
if (bitnum == INVALID_CARGO) return CT_INVALID;
CargoSpec *cs;
const CargoSpec *cs;
FOR_ALL_CARGOSPECS(cs) {
if (cs->bitnum == bitnum) return cs->Index();
}