Commit ed9023bc authored by ceddral's avatar ceddral
Browse files

game: fix Place cast, wrong type

artifact from previous Place -> *Place refactor
parent 7c0e5ecf
......@@ -829,7 +829,7 @@ func (s *StateFinished) agentTransition(p *GamePlayer) {
// final scoring
s.g.board.m.Range(func(k, v interface{})bool {
c := k.(Coord)
p := v.(Place)
p := v.(*Place)
// only score structures that contain at least one token
for id, _ := range p.fieldIdToToken {
s.g.board.TryScore(c.x, c.y, id, true)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment