1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +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

View File

@@ -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 :?