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:
commit
f7718628dc
@ -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 :?
|
||||
|
Loading…
Reference in New Issue
Block a user