Skip to content

Commit e52b701

Browse files
committed
Fix log.
1 parent 131f62d commit e52b701

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/xrCore/log.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Lock logCS(MUTEX_PROFILE_ID(log));
1818
#else // CONFIG_PROFILE_LOCKS
1919
Lock logCS;
2020
#endif // CONFIG_PROFILE_LOCKS
21-
xr_vector<xr_string> LogFile(1000);
21+
xr_vector<xr_string> LogFile;
2222
LogCallback LogCB = 0;
2323

2424
void FlushLog()
@@ -186,6 +186,8 @@ LPCSTR log_name() { return (log_file_name); }
186186

187187
void CreateLog(BOOL nl)
188188
{
189+
LogFile.reserve(1000);
190+
189191
no_log = nl;
190192
strconcat(sizeof(log_file_name), log_file_name, Core.ApplicationName, "_", Core.UserName, ".log");
191193
if (FS.path_exist("$logs$"))

0 commit comments

Comments
 (0)