mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Conditions: Corrected upper array bound requirement for PlayerConditionLogic
This commit is contained in:
@@ -2725,7 +2725,7 @@ inline bool PlayerConditionCompare(int32 comparisonType, int32 value1, int32 val
|
||||
template<std::size_t N>
|
||||
inline bool PlayerConditionLogic(uint32 logic, std::array<bool, N>& results)
|
||||
{
|
||||
static_assert(N < 16, "Logic array size must be equal to or less than 16");
|
||||
static_assert(N < 8, "Logic array size must be equal to or less than 8");
|
||||
|
||||
for (std::size_t i = 0; i < results.size(); ++i)
|
||||
if ((logic >> (16 + i)) & 1)
|
||||
|
||||
Reference in New Issue
Block a user