Fix bug with ship as parameter

This commit is contained in:
Brian Buller 2020-10-19 09:17:04 -05:00
parent 5132c9aa7b
commit c13d1daa87

View File

@ -43,7 +43,7 @@ func (a *AppState) runQuest(parms []string) int {
a.Quest.Verbose = a.Verbose a.Quest.Verbose = a.Verbose
parms = parms[1:] parms = parms[1:]
var ships []string var ships []string
if len(parms) > 1 { if len(parms) > 0 {
ships = append(ships, parms[0]) ships = append(ships, parms[0])
} }
ships = append(ships, "default") ships = append(ships, "default")