Fix compilation on windows

This commit is contained in:
dP
2023-04-11 01:31:15 +04:00
parent b17a7e6782
commit a32d526438
2 changed files with 5 additions and 5 deletions

View File

@@ -74,18 +74,18 @@ This is usable for any OpenTTD servers
== CHANGELOG ==
*** 13.1 (10 Apr 2022) ***
*** 13.1 (11 Apr 2022) ***
- Show building preview when funding industries.
- Show industry production on the minimap on high zoom levels in IMBA mode.
- Added two more zoom levels to the minimap.
- Improved performance of the UI for about 20% (ported from JGRPP).
- Show cargo and industry type IDs in industry chains window in developer mode.
- Added cmgamestats console command to show the total number of vehicles in the game.
- Added `cmgamestats` console command to show the total number of vehicles in the game.
- Added a server lag counter in the status bar (when show APM is enabled).
- Improved how regular advertisement tracks stations.
- Fixed crash when moving station blueprint outside the map area.
- Fixed crash in polyrail terraforming mode (#15)
- Fixed clients overlay
- Fixed crash in polyrail terraforming mode (#15).
- Fixed clients overlay.
- Fixed shaded trees and graph background settings not being available in multiplayer.
*** 13.0 (21 Feb 2023) ***

View File

@@ -106,7 +106,7 @@ void ExecuteFakeCommands(Date date, DateFract date_fract) {
void load_replay_commands(const std::string &filename, std::function<void(const std::string &)> error_func) {
_fake_commands = {};
FILE *f = std::fopen(filename.c_str(), "rb");
FILE *f = fopen(filename.c_str(), "rb");
if (f == nullptr) {
error_func(fmt::format("Cannot open file `{}`: {}", filename, std::strerror(errno)));