From ba482cf5e471277a80e605d9ae73fb5614f96e33 Mon Sep 17 00:00:00 2001 From: MDIC Date: Wed, 13 Apr 2022 13:24:09 -0400 Subject: [PATCH] Overflow fix --- src/AnticheatMgr.cpp | 4 ++-- src/cs_anticheat.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index d655e14..3a16315 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -692,8 +692,8 @@ void AnticheatMgr::BuildReport(Player* player, uint16 reportType) player->CastSpell(player, SHACKLES); // Shackle him in place to ensure no exploit happens for jail break attempt Aura* dungdesert = player->AddAura(LFG_SPELL_DUNGEON_DESERTER, player);// LFG_SPELL_DUNGEON_DESERTER Aura* bgdesert = player->AddAura(BG_SPELL_DESERTER, player);// BG_SPELL_DESERTER - dungdesert->SetDuration(2147483647 * IN_MILLISECONDS); - bgdesert->SetDuration(2147483647 * IN_MILLISECONDS); + dungdesert->SetDuration(-1000 * IN_MILLISECONDS); + bgdesert->SetDuration(-1000 * IN_MILLISECONDS); if (sConfigMgr->GetOption("Anticheat.AnnounceJail", true)) { diff --git a/src/cs_anticheat.cpp b/src/cs_anticheat.cpp index 9dedcff..cb7c028 100644 --- a/src/cs_anticheat.cpp +++ b/src/cs_anticheat.cpp @@ -139,8 +139,8 @@ public: pTarget->CastSpell(pTarget, SHACKLES); // Shackle him in place to ensure no exploit happens for jail break attempt Aura* dungdesert = pTarget->AddAura(LFG_SPELL_DUNGEON_DESERTER, pTarget);// LFG_SPELL_DUNGEON_DESERTER Aura* bgdesert = pTarget->AddAura(BG_SPELL_DESERTER, pTarget);// BG_SPELL_DESERTER - dungdesert->SetDuration(2147483647 * IN_MILLISECONDS); - bgdesert->SetDuration(2147483647 * IN_MILLISECONDS); + dungdesert->SetDuration(-1000 * IN_MILLISECONDS); + bgdesert->SetDuration(-1000 * IN_MILLISECONDS); return true; }