refactor: load/save state as ptr

This commit is contained in:
Ilia Denisov
2026-01-12 19:30:50 +02:00
parent ac60bb3020
commit 4451850f22
18 changed files with 71 additions and 57 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import (
)
func TestDeclarePeaceAndWarSingle(t *testing.T) {
g(t, func(f func(*controller.Param), g func() mg.Game) {
g(t, func(f func(*controller.Param), g func() *mg.Game) {
hostRace := "race_05"
opponentRace := "race_01"
@@ -38,7 +38,7 @@ func TestDeclarePeaceAndWarSingle(t *testing.T) {
}
func TestDeclarePeaceAndWarAll(t *testing.T) {
g(t, func(f func(*controller.Param), g func() mg.Game) {
g(t, func(f func(*controller.Param), g func() *mg.Game) {
hostRace := "race_07"
for i := range testRaceCount {