mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-21 15:27:47 -04:00
Core/Misc: Fix some static analysis issues
This commit is contained in:
@@ -739,7 +739,7 @@ void Object::SetByteValue(uint16 index, uint8 offset, uint8 value)
|
||||
{
|
||||
ASSERT(index < m_valuesCount || PrintIndexError(index, true));
|
||||
|
||||
if (offset > 4)
|
||||
if (offset > 3)
|
||||
{
|
||||
TC_LOG_ERROR("misc", "Object::SetByteValue: wrong offset %u", offset);
|
||||
return;
|
||||
@@ -763,7 +763,7 @@ void Object::SetUInt16Value(uint16 index, uint8 offset, uint16 value)
|
||||
{
|
||||
ASSERT(index < m_valuesCount || PrintIndexError(index, true));
|
||||
|
||||
if (offset > 2)
|
||||
if (offset > 1)
|
||||
{
|
||||
TC_LOG_ERROR("misc", "Object::SetUInt16Value: wrong offset %u", offset);
|
||||
return;
|
||||
@@ -903,7 +903,7 @@ void Object::SetByteFlag(uint16 index, uint8 offset, uint8 newFlag)
|
||||
{
|
||||
ASSERT(index < m_valuesCount || PrintIndexError(index, true));
|
||||
|
||||
if (offset > 4)
|
||||
if (offset > 3)
|
||||
{
|
||||
TC_LOG_ERROR("misc", "Object::SetByteFlag: wrong offset %u", offset);
|
||||
return;
|
||||
@@ -926,7 +926,7 @@ void Object::RemoveByteFlag(uint16 index, uint8 offset, uint8 oldFlag)
|
||||
{
|
||||
ASSERT(index < m_valuesCount || PrintIndexError(index, true));
|
||||
|
||||
if (offset > 4)
|
||||
if (offset > 3)
|
||||
{
|
||||
TC_LOG_ERROR("misc", "Object::RemoveByteFlag: wrong offset %u", offset);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user