From 2213a99147248441a6fd1b9de9b1c162b44d8595 Mon Sep 17 00:00:00 2001 From: Nyo Date: Tue, 27 Sep 2016 21:08:52 +0200 Subject: [PATCH] .BANCHO. .FIX. Fix negative pp value causing exception --- constants/serverPackets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constants/serverPackets.py b/constants/serverPackets.py index cd25bf9..3ebd2ee 100644 --- a/constants/serverPackets.py +++ b/constants/serverPackets.py @@ -140,7 +140,7 @@ def userStats(userID, force = False): [userToken.playcount, dataTypes.UINT32], [userToken.totalScore, dataTypes.UINT64], [userToken.gameRank, dataTypes.UINT32], - [userToken.pp if userToken.pp <= 65535 else 0, dataTypes.UINT16] + [userToken.pp if userToken.pp <= 65535 and userToken.pp > 0 else 0, dataTypes.UINT16] ])