cmd: upgrade group
This commit is contained in:
@@ -51,7 +51,7 @@ func (g Game) deleteScienceInternal(ri int, name string) error {
|
||||
return e.NewEntityNotExistsError("science %w", name)
|
||||
}
|
||||
if pl := slices.IndexFunc(g.Map.Planet, func(p Planet) bool {
|
||||
return p.Production.Production == ResearchScience &&
|
||||
return p.Production.Type == ResearchScience &&
|
||||
p.Production.SubjectID != nil &&
|
||||
*p.Production.SubjectID == g.Race[ri].Sciences[sc].ID
|
||||
}); pl >= 0 {
|
||||
|
||||
Reference in New Issue
Block a user