From 28573641c83b4e9c27c7a5b3ec0a3b10cf116eb8 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 11 Dec 2010 06:12:37 +0100 Subject: Corrected max(). --- server/score.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/score.cpp b/server/score.cpp index 4589efe..b4750c3 100644 --- a/server/score.cpp +++ b/server/score.cpp @@ -5,7 +5,7 @@ inline int roundup(int value, int roundto) { } inline int max(int x, int y) { - return x > y ? x : y; + return x < y ? x : y; } Score::Score(int yaku_, int fu_, int dora_) : yaku(yaku_), fu(fu_), dora(dora_) { -- cgit v1.2.3