Check to make sure we're a client before a CastToClient(). Missed this

on first patch.
This commit is contained in:
Paul Coene 2015-04-30 09:33:11 -04:00
parent a1960d4a4a
commit eea667e22d

View File

@ -983,9 +983,11 @@ int Mob::GetWeaponDamage(Mob *against, const ItemInst *weapon_item, uint32 *hate
} }
else{ else{
bool MagicGloves=false; bool MagicGloves=false;
ItemInst *gloves=CastToClient()->GetInv().GetItem(MainHands); if (IsClient()) {
if (gloves != nullptr) { ItemInst *gloves=CastToClient()->GetInv().GetItem(MainHands);
MagicGloves = gloves->GetItem()->Magic; if (gloves != nullptr) {
MagicGloves = gloves->GetItem()->Magic;
}
} }
if((GetClass() == MONK || GetClass() == BEASTLORD)) { if((GetClass() == MONK || GetClass() == BEASTLORD)) {