mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r23305) -Fix (r23298): warning about comparing different enums
This commit is contained in:
parent
d809ea4f23
commit
08fb610592
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user