From 04a4f00f807f66cb131025bef5de623cbac244f4 Mon Sep 17 00:00:00 2001 From: Yizhe Shen Date: Thu, 13 Feb 2014 18:59:36 -0500 Subject: [PATCH] Added check for abnormal game stop before updating game stats. --- modules/wolfgame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 779cdfa..9819219 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -838,7 +838,8 @@ def stop_game(cli, winner = ""): var.update_role_stats(acc, rol, won, iwon) size = len(var.list_players()) + len(var.DEAD) - var.update_game_stats(size, winner) + if winner != "": # Only update if not an abnormal game stop + var.update_game_stats(size, winner) reset(cli)