Fix possible out of bounds (#7630)

This commit is contained in:
Vincent Stumpf 2023-03-06 09:37:26 -08:00 committed by GitHub
parent bb8c4a03c8
commit 6a0b7afd88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}