Fix assert failure when opening with no args

This commit is contained in:
Thomas Goyne 2016-02-06 19:56:37 -08:00
parent 14a80dbabd
commit a315ce6903

View file

@ -318,6 +318,7 @@ bool AegisubApp::OnInit() {
// Get parameter subs
StartupLog("Parse command line");
auto const& args = argv.GetArguments();
if (args.size() > 1)
OpenFiles(wxArrayStringsAdapter(args.size() - 1, &args[1]));
}
catch (agi::Exception const& e) {