mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
refactor(Core/Misc): abs() to std::abs() (#9789)
This commit is contained in:
@@ -931,7 +931,7 @@ void ConditionMgr::LoadConditions(bool isReload)
|
||||
delete cond;
|
||||
continue;
|
||||
}
|
||||
cond->ReferenceId = uint32(abs(iConditionTypeOrReference));
|
||||
cond->ReferenceId = uint32(std::abs(iConditionTypeOrReference));
|
||||
|
||||
const char* rowType = "reference template";
|
||||
if (iSourceTypeOrReferenceId >= 0)
|
||||
@@ -960,7 +960,7 @@ void ConditionMgr::LoadConditions(bool isReload)
|
||||
|
||||
if (iSourceTypeOrReferenceId < 0) // it is a reference template
|
||||
{
|
||||
uint32 uRefId = abs(iSourceTypeOrReferenceId);
|
||||
uint32 uRefId = std::abs(iSourceTypeOrReferenceId);
|
||||
if (ConditionReferenceStore.find(uRefId) == ConditionReferenceStore.end()) // make sure we have a list for our conditions, based on reference id
|
||||
{
|
||||
ConditionList mCondList;
|
||||
|
||||
Reference in New Issue
Block a user