From 1b0b79f6778666f487a9b82d4c47dd3a94ad9fcb Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 18 May 2022 17:47:12 -0700 Subject: web: fix bug when player 2 presses remaining key --- web/web_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/web_control.c') 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() -- cgit v1.2.3-70-g09d2