refactor(Core/Misc): abs() to std::abs() (#9789)

This commit is contained in:
Kitzunu 2021-12-31 23:29:39 +01:00 committed by GitHub
parent fe9305c724
commit ac99eb48e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 60 additions and 60 deletions

View file

@ -2807,7 +2807,7 @@ void Guild::_SendBankList(WorldSession* session /* = nullptr*/, uint8 tabId /*=
itemInfo.Slot = *itr;
itemInfo.ItemID = tabItem->GetEntry();
itemInfo.Count = int32(tabItem->GetCount());
itemInfo.Charges = int32(abs(tabItem->GetSpellCharges()));
itemInfo.Charges = int32(std::abs(tabItem->GetSpellCharges()));
itemInfo.EnchantmentID = int32(tabItem->GetEnchantmentId(PERM_ENCHANTMENT_SLOT));
itemInfo.Flags = tabItem->GetInt32Value(ITEM_FIELD_FLAGS);