diff options
author | fonsinchen <fonsinchen@openttd.org> | 2013-08-10 12:47:13 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2013-08-10 12:47:13 +0000 |
commit | 7ea878b938d9bfa3224fa40f16182555632b260f (patch) | |
tree | 9e296e527c6f0dc80cc3aabb55204102beed4a8f /src/script/api | |
parent | 438520c3f4c9f5bff0b0ff9b087dbbb92752c8b3 (diff) | |
download | openttd-7ea878b938d9bfa3224fa40f16182555632b260f.tar.xz |
(svn r25709) -Fix: don't return -1 as unsigned
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/script_town.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/script_town.cpp b/src/script/api/script_town.cpp index fa4b9c0c7..b64adab1a 100644 --- a/src/script/api/script_town.cpp +++ b/src/script/api/script_town.cpp @@ -120,8 +120,8 @@ /* static */ uint32 ScriptTown::GetCargoGoal(TownID town_id, ScriptCargo::TownEffect towneffect_id) { - if (!IsValidTown(town_id)) return -1; - if (!ScriptCargo::IsValidTownEffect(towneffect_id)) return -1; + if (!IsValidTown(town_id)) return UINT32_MAX; + if (!ScriptCargo::IsValidTownEffect(towneffect_id)) return UINT32_MAX; const Town *t = ::Town::Get(town_id); |