aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_debug.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp
index a73c8329993..d03dd7b96cb 100644
--- a/src/server/scripts/Commands/cs_debug.cpp
+++ b/src/server/scripts/Commands/cs_debug.cpp
@@ -1616,11 +1616,7 @@ public:
return false;
}
- PlayerConditionEntry const* playerConditionEntry = sPlayerConditionStore.LookupEntry(playerConditionId);
- if (!playerConditionEntry)
- return false;
-
- if (ConditionMgr::IsPlayerMeetingCondition(target, playerConditionEntry))
+ if (ConditionMgr::IsPlayerMeetingCondition(target, playerConditionId))
handler->PSendSysMessage("PlayerCondition %u met", playerConditionId);
else
handler->PSendSysMessage("PlayerCondition %u not met", playerConditionId);