diff options
author | rubidium <rubidium@openttd.org> | 2009-03-24 22:00:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-24 22:00:11 +0000 |
commit | 4546be7e906ffcf8810d45e6630081e9b1716e90 (patch) | |
tree | 014b183c7d62148808f939e9f3b20a74404b28c4 /src/disaster_cmd.cpp | |
parent | 5c44bb6b63b9b9d9ecd1977079f105a3053aed4a (diff) | |
download | openttd-4546be7e906ffcf8810d45e6630081e9b1716e90.tar.xz |
(svn r15838) -Fix: MSVC 64 bits warnings
Diffstat (limited to 'src/disaster_cmd.cpp')
-rw-r--r-- | src/disaster_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp index 725cd914c..41b25dcb4 100644 --- a/src/disaster_cmd.cpp +++ b/src/disaster_cmd.cpp @@ -880,9 +880,9 @@ static void DoDisaster() { byte buf[lengthof(_disasters)]; - size_t j = 0; + byte j = 0; for (size_t i = 0; i != lengthof(_disasters); i++) { - if (_cur_year >= _disasters[i].min_year && _cur_year < _disasters[i].max_year) buf[j++] = i; + if (_cur_year >= _disasters[i].min_year && _cur_year < _disasters[i].max_year) buf[j++] = (byte)i; } if (j == 0) return; |