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/saveload/afterload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/saveload') diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 052d3d6e3..5831479cd 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -1887,7 +1887,7 @@ bool AfterLoadGame() /* Delete invalid subsidies possibly present in old versions (but converted to new savegame) */ Subsidy *s; FOR_ALL_SUBSIDIES(s) { - if (s->age >= 12) { + if (s->IsAwarded()) { /* Station -> Station */ const Station *from = Station::GetIfValid(s->from); const Station *to = Station::GetIfValid(s->to); -- cgit v1.2.3-70-g09d2