From 48814611e9b638c4b2475fec129d83dcf92a889b Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Fri, 20 May 2022 03:02:17 -0700 Subject: web: dynamically allocate player bufs --- web/web_match.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/web_match.c') diff --git a/web/web_match.c b/web/web_match.c index 793aedd..f200f11 100644 --- a/web/web_match.c +++ b/web/web_match.c @@ -82,12 +82,12 @@ int match_winning_player() return i + 1; } - return -1; + return 0; } bool match_is_over() { - return match_winning_player() != -1; + return match_winning_player() != 0; } int match_prev_player() -- cgit v1.2.3-70-g09d2