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