From 1529b73ebd9b908fe2ba4ce4b0caf701bb14288a Mon Sep 17 00:00:00 2001 From: Nefertumm Date: Sat, 5 Feb 2022 07:22:13 -0300 Subject: [PATCH] fix: build (#47) --- src/AnticheatMgr.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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);