diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 5a9af43..0b3a56a 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -417,9 +417,9 @@ void AnticheatMgr::AnticheatGlobalCommand(ChatHandler* handler) { Field *fieldsDB = resultDB->Fetch(); - ObjectGuid guid = ObjectGuid::Create(fieldsDB[0].GetUInt32()); - float average = fieldsDB[1].GetFloat(); - uint32 total_reports = fieldsDB[2].GetUInt32(); + ObjectGuid guid = ObjectGuid::Create(fieldsDB[0].Get()); + float average = fieldsDB[1].Get(); + uint32 total_reports = fieldsDB[2].Get(); if (Player* player = ObjectAccessor::FindConnectedPlayer(guid)) handler->PSendSysMessage("Player: %s Average: %f Total Reports: %u", player->GetName().c_str(), average, total_reports); @@ -443,9 +443,9 @@ void AnticheatMgr::AnticheatGlobalCommand(ChatHandler* handler) { Field *fieldsDB = resultDB->Fetch(); - ObjectGuid guid = ObjectGuid::Create(fieldsDB[0].GetUInt32()); - float average = fieldsDB[1].GetFloat(); - uint32 total_reports = fieldsDB[2].GetUInt32(); + ObjectGuid guid = ObjectGuid::Create(fieldsDB[0].Get()); + float average = fieldsDB[1].Get(); + uint32 total_reports = fieldsDB[2].Get(); if (Player* player = ObjectAccessor::FindConnectedPlayer(guid)) handler->PSendSysMessage("Player: %s Total Reports: %u Average: %f", player->GetName().c_str(), total_reports, average);