From af13707e0085ff0b273a1f1577c4e1855dedfbe1 Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 18 Jul 2009 19:54:35 +0000 Subject: (svn r16877) -Codechange: use Subsidy::IsAwarded() instead of testing subsidy's age --- src/economy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/economy.cpp') diff --git a/src/economy.cpp b/src/economy.cpp index 22425bd22..210ff0d49 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -329,7 +329,7 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner) if (new_owner == INVALID_OWNER) { Subsidy *s; FOR_ALL_SUBSIDIES(s) { - if (s->age >= 12 && Station::Get(s->to)->owner == old_owner) { + if (s->IsAwarded() && Station::Get(s->to)->owner == old_owner) { s->cargo_type = CT_INVALID; } } -- cgit v1.2.3-70-g09d2