mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-06 04:42:28 +00:00
explicit compare to nullptr
This commit is contained in:
parent
5eb260b0cb
commit
6fb87cb8ab
@ -452,7 +452,7 @@ bool Mob::AvoidDamage(Mob* other, int32 &damage, bool CanRiposte)
|
||||
|
||||
if(damage > 0 && (aabonuses.TwoHandBluntBlock || spellbonuses.TwoHandBluntBlock || itembonuses.TwoHandBluntBlock)
|
||||
&& (other->InFrontMob(this, other->GetX(), other->GetY()) || bShieldBlockFromRear)) {
|
||||
bool equiped2 = CastToClient()->m_inv.GetItem(13);
|
||||
bool equiped2 = CastToClient()->m_inv.GetItem(13) != nullptr;
|
||||
if(equiped2) {
|
||||
uint8 TwoHandBlunt = CastToClient()->m_inv.GetItem(13)->GetItem()->ItemType;
|
||||
float bonusStaffBlock = 0.0f;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user