Skip to content

Commit 5f7a6fc

Browse files
authored
fix(Core/SmartAI): startup warnings unused params (#23551)
1 parent 50f8f14 commit 5f7a6fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/server/game/AI/SmartScripts/SmartScriptMgr.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,7 @@ bool SmartAIMgr::CheckUnusedActionParams(SmartScriptHolder const& e)
884884
case SMART_ACTION_MOVEMENT_RESUME: return sizeof(SmartAction::move);
885885
case SMART_ACTION_WORLD_SCRIPT: return sizeof(SmartAction::worldStateScript);
886886
case SMART_ACTION_DISABLE_REWARD: return sizeof(SmartAction::reward);
887+
case SMART_ACTION_DISMOUNT: return NO_PARAMS;
887888
default:
888889
LOG_WARN("sql.sql", "SmartAIMgr: entryorguid {} source_type {} id {} action_type {} is using an action with no unused params specified in SmartAIMgr::CheckUnusedActionParams(), please report this.",
889890
e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType());
@@ -948,6 +949,9 @@ bool SmartAIMgr::CheckUnusedTargetParams(SmartScriptHolder const& e)
948949
case SMART_TARGET_VEHICLE_PASSENGER: return sizeof(SmartTarget::vehicle);
949950
// case SMART_TARGET_CLOSEST_UNSPAWNED_GAMEOBJECT: return sizeof(SmartTarget::goClosest);
950951
case SMART_TARGET_PLAYER_WITH_AURA: return sizeof(SmartTarget::playerWithAura);
952+
case SMART_TARGET_RANDOM_POINT: return sizeof(SmartTarget::randomPoint);
953+
case SMART_TARGET_SUMMONED_CREATURES: return sizeof(SmartTarget::summonedCreatures);
954+
case SMART_TARGET_INSTANCE_STORAGE: return sizeof(SmartTarget::instanceStorage);
951955
default:
952956
LOG_WARN("sql.sql", "SmartAIMgr: entryorguid {} source_type {} id {} action_type {} is using a target {} with no unused params specified in SmartAIMgr::CheckUnusedTargetParams(), please report this.",
953957
e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.GetTargetType());

0 commit comments

Comments
 (0)