recator: Repo interface

This commit is contained in:
Ilia Denisov
2026-02-04 17:29:05 +02:00
parent 9a6d4112cf
commit 9d46abe805
11 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ func MakeTurn(c *Controller, r Repo) error {
c.Cache.DeleteKilledShipGroups()
// Store game state for the new turn and 'current' state as well
if err := r.SaveTurn(c.Cache.g.Turn, c.Cache.g); err != nil {
if err := r.SaveNewTurn(c.Cache.g.Turn, c.Cache.g); err != nil {
return err
}