mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-15 04:32:35 -04: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
@@ -1294,7 +1294,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
|
||||
TC_LOG_ERROR("sql.sql", "SmartAIMgr: Entry " SI64FMTD " SourceType %u Event %u Action %u has invoker cast action, but event does not provide any invoker!", e.entryOrGuid, e.GetScriptType(), e.GetEventType(), e.GetActionType());
|
||||
return false;
|
||||
}
|
||||
/* fallthrough */
|
||||
[[fallthrough]];
|
||||
case SMART_ACTION_SELF_CAST:
|
||||
case SMART_ACTION_ADD_AURA:
|
||||
if (!IsSpellValid(e, e.action.cast.spell))
|
||||
|
||||
Reference in New Issue
Block a user