summaryrefslogtreecommitdiff
path: root/web/web_control.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-18 17:47:12 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-18 17:47:12 -0700
commit1b0b79f6778666f487a9b82d4c47dd3a94ad9fcb (patch)
treedf4d72c37a6c3ac95d9427345d5cdcb18ae3cc55 /web/web_control.c
parent9ee81a83ee971b316446e337110d3bbfea7bfc8f (diff)
downloaddartboat-1b0b79f6778666f487a9b82d4c47dd3a94ad9fcb.tar.gz
dartboat-1b0b79f6778666f487a9b82d4c47dd3a94ad9fcb.tar.xz
web: fix bug when player 2 presses remaining key
Diffstat (limited to 'web/web_control.c')
-rw-r--r--web/web_control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/web_control.c b/web/web_control.c
index c9fb138..8d01e5a 100644
--- a/web/web_control.c
+++ b/web/web_control.c
@@ -173,7 +173,7 @@ void user_visit(int points)
void user_visit_to_rem(int rem)
{
- user_visit(state->legs[0]->rem - rem);
+ user_visit(state_active_leg()->rem - rem);
}
static void undo_active()