fix segfault during bb quest loading

This commit is contained in:
Martin Michelsen
2022-05-11 23:22:30 -07:00
parent 711a4b815c
commit 4af86e1a4d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1375,7 +1375,7 @@ void send_quest_open_file_t(
default:
throw logic_error("invalid quest file type");
}
cmd.unused = 0;
cmd.unused.clear();
cmd.file_size = file_size;
cmd.filename = filename.c_str();
send_command_t(c, command_num, 0x00, cmd);