Restore empty target check in spell absorption

pull/593/head
Alexei Dobrohotov 4 years ago
parent 341bcb66f5
commit 1842f546c3

@ -46,7 +46,7 @@ namespace MWMechanics
bool absorbSpell (const std::string& spellId, const MWWorld::Ptr& caster, const MWWorld::Ptr& target)
{
if (spellId.empty() || caster == target || !target.getClass().isActor())
if (spellId.empty() || target.isEmpty() || caster == target || !target.getClass().isActor())
return false;
CreatureStats& stats = target.getClass().getCreatureStats(target);

Loading…
Cancel
Save