1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-29 21:56:54 +02:00

Fix warnings about empty kill target

This commit is contained in:
nordsoft 2023-10-18 00:13:32 +02:00
parent 02c1425939
commit 966ffe4377

@ -423,6 +423,9 @@ void IQuestObject::afterAddToMapCommon(CMap * map) const
void CGSeerHut::setObjToKill()
{
if(quest->killTarget == ObjectInstanceID::NONE)
return;
if(getCreatureToKill(true))
{
quest->stackToKill = getCreatureToKill(false)->getStack(SlotID(0)); //FIXME: stacks tend to disappear (desync?) on server :?