# HG changeset patch # User rubidium # Date 2011-11-23 16:17:13 # Node ID 7951ff5b73a123b52d04e5d3df87f37511b27b19 # Parent 0df1318ed95e902b871329078ceaa15e5d8185d9 (svn r23305) -Fix (r23298): warning about comparing different enums diff --git a/src/ai/api/ai_cargo.cpp b/src/ai/api/ai_cargo.cpp --- 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)