refactor: group uuid instead of index
This commit is contained in:
@@ -101,7 +101,7 @@ func (c *Cache) shipClassRemove(ri int, name string) error {
|
||||
|
||||
for sg := range c.listShipGroups(ri) {
|
||||
if sg.TypeID == st.ID {
|
||||
return e.NewDeleteShipTypeExistingGroupError("group: %v", sg.Index)
|
||||
return e.NewDeleteShipTypeExistingGroupError("group: %s", sg.ID)
|
||||
}
|
||||
}
|
||||
c.g.Race[ri].ShipTypes = append(c.g.Race[ri].ShipTypes[:i], c.g.Race[ri].ShipTypes[i+1:]...)
|
||||
|
||||
Reference in New Issue
Block a user