From c13d1daa87aae13182273480d755d312a524f8f6 Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Mon, 19 Oct 2020 09:17:04 -0500 Subject: [PATCH] Fix bug with ship as parameter --- cmd/ncpt/app_quest_cmds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ncpt/app_quest_cmds.go b/cmd/ncpt/app_quest_cmds.go index 62202a3..c014786 100644 --- a/cmd/ncpt/app_quest_cmds.go +++ b/cmd/ncpt/app_quest_cmds.go @@ -43,7 +43,7 @@ func (a *AppState) runQuest(parms []string) int { a.Quest.Verbose = a.Verbose parms = parms[1:] var ships []string - if len(parms) > 1 { + if len(parms) > 0 { ships = append(ships, parms[0]) } ships = append(ships, "default")