Fix potential crash in Sacrifice

This commit is contained in:
Michael Cook (mackal) 2016-08-13 15:35:28 -04:00
parent 00cfe2d25f
commit ef3cf099b8

View File

@ -3729,10 +3729,10 @@ void Client::Sacrifice(Client *caster)
}
Save();
GoToDeath();
if (caster) // I guess it's possible?
caster->SummonItem(RuleI(Spells, SacrificeItemID));
}
}
else{
} else {
caster->Message_StringID(13, SAC_TOO_LOW); // This being is not a worthy sacrifice.
}
}