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

This commit is contained in:
rubidium 2011-11-23 16:17:13 +00:00
parent 3a5d257e46
commit 7df6a9217a

View File

@ -22,7 +22,7 @@
/* 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)