mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
Debug: Fix compilation error when using RANDOM_DEBUG
This commit is contained in:
parent
b84d1bcee4
commit
3d382fe531
@ -174,7 +174,6 @@ void debug_print(const char *dbg, const char *buf)
|
||||
unsigned int num = 0;
|
||||
int pid = getpid();
|
||||
for(;;) {
|
||||
free(fn);
|
||||
std::string fn = stdstr_fmt("random-out-%d-%u.log", pid, num);
|
||||
f = FioFOpenFile(fn.c_str(), "wx", AUTOSAVE_DIR);
|
||||
if (f == nullptr && errno == EEXIST) {
|
||||
|
Loading…
Reference in New Issue
Block a user