mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs (#25054)
Related: #25006
(cherry picked from commit 85b5b842ca)
This commit is contained in:
committed by
Shauren
parent
fda8a09766
commit
ad340466d0
@@ -278,7 +278,7 @@ void WorldSession::HandlePetActionHelper(Unit* pet, ObjectGuid guid1, uint32 spe
|
||||
{
|
||||
case REACT_PASSIVE: // passive
|
||||
pet->AttackStop();
|
||||
/* fallthrough */
|
||||
[[fallthrough]];
|
||||
case REACT_DEFENSIVE: // recovery
|
||||
case REACT_AGGRESSIVE: // activete
|
||||
if (pet->GetTypeId() == TYPEID_UNIT)
|
||||
|
||||
Reference in New Issue
Block a user