From a9a8d963218339ead1b0fa88902ca0467b9cd2b3 Mon Sep 17 00:00:00 2001 From: CakeLancelot Date: Wed, 25 Nov 2020 20:37:24 -0600 Subject: [PATCH] Fix Female Characters always failing validation --- src/CNLoginServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CNLoginServer.cpp b/src/CNLoginServer.cpp index 6fff764..d48f19f 100644 --- a/src/CNLoginServer.cpp +++ b/src/CNLoginServer.cpp @@ -290,7 +290,7 @@ bool validateCharacterCreation(sP_CL2LS_REQ_CHAR_CREATE* character) { // facestyle and hairstyle are gender dependent if (!(style->iGender == 1 && style->iFaceStyle >= 1 && style->iFaceStyle <= 5 && style->iHairStyle >= 1 && style->iHairStyle <= 23) || - (style->iGender == 2 && style->iFaceStyle >= 6 && style->iFaceStyle <= 10 && style->iHairStyle >= 25 && style->iHairStyle <= 45)) + !(style->iGender == 2 && style->iFaceStyle >= 6 && style->iFaceStyle <= 10 && style->iHairStyle >= 25 && style->iHairStyle <= 45)) return false; // validate items