Mercurial > hg > openttd
changeset 18461:10d16278bb7d draft
(svn r23305) -Fix (r23298): warning about comparing different enums
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 23 Nov 2011 16:17:13 +0000 |
parents | 2596ab16da1f |
children | 1e4a674d464e |
files | src/ai/api/ai_cargo.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ai/api/ai_cargo.cpp +++ b/src/ai/api/ai_cargo.cpp @@ -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)