cmd: unload cargo
This commit is contained in:
@@ -33,7 +33,7 @@ type PlanetReport struct {
|
||||
}
|
||||
|
||||
type Planet struct {
|
||||
Owner uuid.UUID `json:"owner"`
|
||||
Owner uuid.UUID `json:"owner"` // FIXME: nil value when no owner
|
||||
PlanetReport
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ func (g Game) renamePlanetInternal(ri int, number int, name string) error {
|
||||
return e.NewEntityNotExistsError("planet #%d", number)
|
||||
}
|
||||
if g.Map.Planet[pl].Owner != g.Race[ri].ID {
|
||||
return e.NewEntityNotOwnedError("planet %#d", number)
|
||||
return e.NewEntityNotOwnedError("planet #%d", number)
|
||||
}
|
||||
g.Map.Planet[pl].Name = n
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user