Skip to content

Commit

Permalink
Anticheat: Add warning and safeguard against no result for warden_scans
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed May 18, 2024
1 parent 06dc783 commit 762f49f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/game/Anticheat/module/Warden/wardenscanmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ void WardenScanMgr::loadFromDB()

m_scans = std::move(new_scans);

if (!result)
{
sLog.outBasic(">> 0 Warden scans loaded from world database. Table warden_scans is empty.");
return;
}

do
{
auto fields = result->Fetch();
Expand Down

0 comments on commit 762f49f

Please sign in to comment.