mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r25333) -Fix: Potential signedness issue.
This commit is contained in:
parent
a23b84fdfc
commit
5bb1d01af9
@ -205,7 +205,7 @@ static void OnNewYear()
|
|||||||
/* check if we reached the maximum year, decrement dates by a year */
|
/* check if we reached the maximum year, decrement dates by a year */
|
||||||
} else if (_cur_year == MAX_YEAR + 1) {
|
} else if (_cur_year == MAX_YEAR + 1) {
|
||||||
Vehicle *v;
|
Vehicle *v;
|
||||||
uint days_this_year;
|
int days_this_year;
|
||||||
|
|
||||||
_cur_year--;
|
_cur_year--;
|
||||||
days_this_year = IsLeapYear(_cur_year) ? DAYS_IN_LEAP_YEAR : DAYS_IN_YEAR;
|
days_this_year = IsLeapYear(_cur_year) ? DAYS_IN_LEAP_YEAR : DAYS_IN_YEAR;
|
||||||
|
Loading…
Reference in New Issue
Block a user