Fix incorrect accounting of company quarterly statistics
This commit is contained in:
@@ -804,7 +804,7 @@ static void CompaniesGenStatistics()
|
|||||||
cur_company.Restore();
|
cur_company.Restore();
|
||||||
|
|
||||||
/* Only run the economic statics and update company stats every 3rd month (1st of quarter). */
|
/* Only run the economic statics and update company stats every 3rd month (1st of quarter). */
|
||||||
if ((EconTime::CurMonth() % 3) == 0) return;
|
if ((EconTime::CurMonth() % 3) != 0) return;
|
||||||
|
|
||||||
for (Company *c : Company::Iterate()) {
|
for (Company *c : Company::Iterate()) {
|
||||||
/* Drop the oldest history off the end */
|
/* Drop the oldest history off the end */
|
||||||
|
Reference in New Issue
Block a user