refactor: group uuid instead of index

This commit is contained in:
IliaDenisov
2026-02-10 20:54:43 +03:00
parent 6c8384ce7a
commit 56998d4c2d
26 changed files with 333 additions and 363 deletions
+1 -1
View File
@@ -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:]...)