mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-25 21:02:26 +00:00
Fix potential crash in Sacrifice
This commit is contained in:
parent
00cfe2d25f
commit
ef3cf099b8
@ -3729,10 +3729,10 @@ void Client::Sacrifice(Client *caster)
|
|||||||
}
|
}
|
||||||
Save();
|
Save();
|
||||||
GoToDeath();
|
GoToDeath();
|
||||||
|
if (caster) // I guess it's possible?
|
||||||
caster->SummonItem(RuleI(Spells, SacrificeItemID));
|
caster->SummonItem(RuleI(Spells, SacrificeItemID));
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
caster->Message_StringID(13, SAC_TOO_LOW); // This being is not a worthy sacrifice.
|
caster->Message_StringID(13, SAC_TOO_LOW); // This being is not a worthy sacrifice.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user