From eea667e22dc574f0115572f653c19409e1862b02 Mon Sep 17 00:00:00 2001 From: Paul Coene Date: Thu, 30 Apr 2015 09:33:11 -0400 Subject: [PATCH] Check to make sure we're a client before a CastToClient(). Missed this on first patch. --- zone/attack.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/zone/attack.cpp b/zone/attack.cpp index da0504902..8689f9b85 100644 --- a/zone/attack.cpp +++ b/zone/attack.cpp @@ -983,9 +983,11 @@ int Mob::GetWeaponDamage(Mob *against, const ItemInst *weapon_item, uint32 *hate } else{ bool MagicGloves=false; - ItemInst *gloves=CastToClient()->GetInv().GetItem(MainHands); - if (gloves != nullptr) { - MagicGloves = gloves->GetItem()->Magic; + if (IsClient()) { + ItemInst *gloves=CastToClient()->GetInv().GetItem(MainHands); + if (gloves != nullptr) { + MagicGloves = gloves->GetItem()->Magic; + } } if((GetClass() == MONK || GetClass() == BEASTLORD)) {