mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Spells: Add one more allowed case for CastSpellTargetArg constructor
This commit is contained in:
@@ -8341,5 +8341,8 @@ CastSpellTargetArg::CastSpellTargetArg(WorldObject* target)
|
||||
Targets.emplace();
|
||||
Targets->SetGOTarget(goTarget);
|
||||
}
|
||||
// error when targeting anything other than units and gameobjects
|
||||
}
|
||||
else
|
||||
Targets.emplace(); // nullptr is allowed
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user