mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
Fix some codacy detected issues
This commit is contained in:
parent
e69d69cfab
commit
603389992d
5 changed files with 17 additions and 17 deletions
|
|
@ -868,9 +868,9 @@ bool ChatHandler::HandleGetValueHelper(Object* target, uint32 field, char* typeS
|
|||
// starting 0 if need as required bitstring format
|
||||
std::string res;
|
||||
res.reserve(1 + 32 + 1);
|
||||
res = iValue & (1 << (32 - 1)) ? "0" : " ";
|
||||
res = (iValue & (1 << (32 - 1))) ? "0" : " ";
|
||||
for (int i = 32; i > 0; --i)
|
||||
{ res += iValue & (1 << (i - 1)) ? "1" : "0"; }
|
||||
{ res += (iValue & (1 << (i - 1))) ? "1" : "0"; }
|
||||
DEBUG_LOG(GetMangosString(LANG_GET_BITSTR), guid.GetString().c_str(), field, res.c_str());
|
||||
PSendSysMessage(LANG_GET_BITSTR_FIELD, guid.GetString().c_str(), field, res.c_str());
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue