1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Merge pull request #3074 from Nordsoft91/quests

Fix warnings about empty kill target
This commit is contained in:
Ivan Savenko 2023-10-18 12:34:44 +03:00 committed by GitHub
commit f7718628dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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