initialize variable

This commit is contained in:
Kitzunu
2024-07-01 00:57:08 +02:00
parent f1869dcae4
commit 2d9fad6349

View File

@@ -5221,7 +5221,7 @@ class spell_gen_sober_up : public AuraScript
if (!target && !target->ToPlayer())
return;
SpellEffIndex InebriateEffIndex;
SpellEffIndex InebriateEffIndex = EFFECT_0;
if (Player* player = target->ToPlayer())
{
switch (GetSpellInfo()->Id)