summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-10-01 19:31:55 +0000
committerfrosch <frosch@openttd.org>2012-10-01 19:31:55 +0000
commit0ba2ed7676b954511fd2c17f450ae1618b1a677c (patch)
treeb4388f02c5ff87b9f2e14963abb51e488bf5cf30 /src/saveload
parent712260202660ffaf19342b43c0b34cd2e2093434 (diff)
downloadopenttd-0ba2ed7676b954511fd2c17f450ae1618b1a677c.tar.xz
(svn r24565) -Fix: Stop both price and payment inflation if either of them has reached MAX_INFLATION.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/afterload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index d97aa2aaf..bc27288e2 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -2171,7 +2171,7 @@ bool AfterLoadGame()
/* Simulate the inflation, so we also get the payment inflation */
while (_economy.inflation_prices < aimed_inflation) {
- AddInflation(false);
+ if (AddInflation(false)) break;
}
}