Scripts/Misc: fixed more GCC warnings

This commit is contained in:
Ovahlord committed 2023-07-08 22:24:51 +02:00
1 parent 51b54151e3
commit b17585fc55
2 files changed
+2 -2

No files matched your search

@@ -587,7 +587,7 @@ void BattlefieldTB::UpdateNPCsAndGameObjects()
door->SetGoState(GetState() == AsUnderlyingType(BATTLEFIELD_INACTIVE) ? GO_STATE_ACTIVE : GO_STATE_READY);
// Decide which cellblock and questgiver will be active.
m_iCellblockRandom = GetState() == AsUnderlyingType(BATTLEFIELD_INACTIVE) ? urand(0, CELLBLOCK_MAX - 1) : CELLBLOCK_NONE;
m_iCellblockRandom = GetState() == AsUnderlyingType(BATTLEFIELD_INACTIVE) ? urand(0, CELLBLOCK_MAX - 1) : uint8(CELLBLOCK_NONE);
// To The Hole gate
if (GameObject* door = GetGameObject(m_gateToTheHoleGUID))
+1 -1
View File
@@ -720,7 +720,7 @@ class spell_dk_pestilence : public SpellScript
{
float donePct = aurOld->GetDonePct();
if (AuraEffect* aurEffOld = aurOld->GetEffect(EFFECT_0))
if (aurOld->GetEffect(EFFECT_0))
{
caster->CastSpell(hitUnit, SPELL_DK_FROST_FEVER, true); // Spread the disease to hitUnit.