From 71d1212877b3dc6455a9bcfbe1326388f83eb3d5 Mon Sep 17 00:00:00 2001 From: Gent S Date: Thu, 26 Nov 2020 11:04:56 -0500 Subject: [PATCH] Fix All 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 d48f19f..f77af98 100644 --- a/src/CNLoginServer.cpp +++ b/src/CNLoginServer.cpp @@ -289,7 +289,7 @@ bool validateCharacterCreation(sP_CL2LS_REQ_CHAR_CREATE* character) { return false; // facestyle and hairstyle are gender dependent - if (!(style->iGender == 1 && style->iFaceStyle >= 1 && style->iFaceStyle <= 5 && style->iHairStyle >= 1 && style->iHairStyle <= 23) || + 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)) return false;