From 6a0b7afd88c0bd17a8af6ab21f358161ce15439b Mon Sep 17 00:00:00 2001 From: Vincent Stumpf Date: Mon, 6 Mar 2023 09:37:26 -0800 Subject: [PATCH] Fix possible out of bounds (#7630) --- src/map/pc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 3aa2faccc6..47c3aa0988 100755 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -13569,7 +13569,7 @@ uint64 JobDatabase::parseBodyNode(const ryml::NodeRef& node) { continue; } - if (constant < W_FIST || constant > max) { + if (constant < W_FIST || constant >= max) { this->invalidWarning(aspdNode["BaseASPD"], "Invalid weapon type %s specified for %s, skipping.\n", weapon.c_str(), job_name.c_str()); continue; }