(svn r23305) -Fix (r23298): warning about comparing different enums

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 13 years ago
parent d809ea4f23
commit 08fb610592

@ -22,7 +22,7 @@
/* static */ bool AICargo::IsValidTownEffect(TownEffect towneffect_type) /* static */ bool AICargo::IsValidTownEffect(TownEffect towneffect_type)
{ {
return (towneffect_type >= TE_BEGIN && towneffect_type < TE_END); return (towneffect_type >= (TownEffect)TE_BEGIN && towneffect_type < (TownEffect)TE_END);
} }
/* static */ char *AICargo::GetCargoLabel(CargoID cargo_type) /* static */ char *AICargo::GetCargoLabel(CargoID cargo_type)

Loading…
Cancel
Save