Fix crash when giving commandline arguments with no console initialized

This commit is contained in:
Lion Kortlepel
2022-02-11 11:56:31 +01:00
parent a4f07c9a4d
commit beaea4f624
2 changed files with 6 additions and 6 deletions

View File

@@ -369,10 +369,6 @@ TConsole::TConsole() {
mCommandline.set_history_limit(20);
mCommandline.set_prompt("> ");
BackupOldLog();
bool success = mCommandline.enable_write_to_file("Server.log");
if (!success) {
beammp_error("unable to open file for writing: \"Server.log\"");
}
mCommandline.on_command = [this](Commandline& c) {
try {
auto cmd = c.get_command();