Revert std string in boost::regex_match

This commit is contained in:
Image 2021-07-28 08:47:30 -04:00
parent 1305710349
commit d44969be6e
3 changed files with 3 additions and 3 deletions
EQ2/source/WorldServer
server

View file

@ -1546,8 +1546,6 @@ void Entity::ClearProcs() {
}
sint32 Entity::CalculateHateAmount(Spawn* target, sint32 amt) {
sint32 hate = amt;
amt = CalculateFormulaByStat(amt, ITEM_STAT_TAUNT_AMOUNT);
amt = CalculateFormulaByStat(amt, ITEM_STAT_TAUNT_AND_COMBAT_ART_DAMAGE);

View file

@ -688,7 +688,9 @@ void MapRange::AddVersionRange(std::string zoneName) {
BOOST_FOREACH(boost::filesystem::path
const & i, make_pair(iter, eod)) {
if (is_regular_file(i)) {
if (boost::regex_match(i.string(), base_match, re)) {
std::string fileName(i.string());
if (boost::regex_match(fileName, base_match, re)) {
boost::ssub_match base_sub_match = base_match[2];
boost::ssub_match base_sub_match2 = base_match[5];
boost::ssub_match base_sub_match3 = base_match[6];

Binary file not shown.