mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
(svn r25709) -Fix: don't return -1 as unsigned
This commit is contained in:
parent
438520c3f4
commit
7ea878b938
@ -120,8 +120,8 @@
|
|||||||
|
|
||||||
/* static */ uint32 ScriptTown::GetCargoGoal(TownID town_id, ScriptCargo::TownEffect towneffect_id)
|
/* static */ uint32 ScriptTown::GetCargoGoal(TownID town_id, ScriptCargo::TownEffect towneffect_id)
|
||||||
{
|
{
|
||||||
if (!IsValidTown(town_id)) return -1;
|
if (!IsValidTown(town_id)) return UINT32_MAX;
|
||||||
if (!ScriptCargo::IsValidTownEffect(towneffect_id)) return -1;
|
if (!ScriptCargo::IsValidTownEffect(towneffect_id)) return UINT32_MAX;
|
||||||
|
|
||||||
const Town *t = ::Town::Get(town_id);
|
const Town *t = ::Town::Get(town_id);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user