From 7df6a9217a9cf4851c7f82d33b25f8afed658257 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 23 Nov 2011 16:17:13 +0000 Subject: [PATCH] (svn r23305) -Fix (r23298): warning about comparing different enums --- src/ai/api/ai_cargo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ai/api/ai_cargo.cpp b/src/ai/api/ai_cargo.cpp index 5c38c7107d..f77fe6dfb6 100644 --- 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)