diff options
author | rubidium <rubidium@openttd.org> | 2011-11-23 16:17:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-23 16:17:13 +0000 |
commit | 08fb6105924072dd1f3ac15494991022ab59934f (patch) | |
tree | 89ca6130a00a3683977aedf450e92ec7a38e1bd2 /src | |
parent | d809ea4f237a2de4436687a89f1954887d89f611 (diff) | |
download | openttd-08fb6105924072dd1f3ac15494991022ab59934f.tar.xz |
(svn r23305) -Fix (r23298): warning about comparing different enums
Diffstat (limited to 'src')
-rw-r--r-- | src/ai/api/ai_cargo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_cargo.cpp b/src/ai/api/ai_cargo.cpp index 5c38c7107..f77fe6dfb 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) |