aboutsummaryrefslogtreecommitdiff
path: root/go/game/stack.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-07-24 17:35:20 -0400
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:57:31 +0200
commited7b03e6318fc0ea7254218631bfdf17ee7146a5 (patch)
tree397580ed3384a181df03fa301ae5766a3e1d18c6 /go/game/stack.go
parent146ef8462ac8f5f7424e1db4d779ea286aaf6822 (diff)
downloadmuhqs-game-ed7b03e6318fc0ea7254218631bfdf17ee7146a5.tar.gz
muhqs-game-ed7b03e6318fc0ea7254218631bfdf17ee7146a5.zip
reset an action's targets after resolving it
Diffstat (limited to 'go/game/stack.go')
-rw-r--r--go/game/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/game/stack.go b/go/game/stack.go
index 62783bf2..1ab4ccf8 100644
--- a/go/game/stack.go
+++ b/go/game/stack.go
@@ -32,7 +32,7 @@ func (s *Stack) pop() {
err := s.gameState.ValidateAction(a)
if err == nil {
- a.resolve(s.gameState)
+ s.gameState.ResolveAction(a)
}
log.Println("Resolved", a, err)