Fix possible out of bounds (#7630)
This commit is contained in:
parent
bb8c4a03c8
commit
6a0b7afd88
@ -13569,7 +13569,7 @@ uint64 JobDatabase::parseBodyNode(const ryml::NodeRef& node) {
|
|||||||
continue;
|
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());
|
this->invalidWarning(aspdNode["BaseASPD"], "Invalid weapon type %s specified for %s, skipping.\n", weapon.c_str(), job_name.c_str());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user