1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

* VCAI: fixed possible endless loop of realizing GATHERRESOURCE goal

* an assertion failing when quest object cannot find its targeted monster ("crash early" policy), related to #1076
This commit is contained in:
Michał W. Urbańczyk
2012-09-28 16:20:18 +00:00
parent 0435d5a4f1
commit 8bb4abb75a
2 changed files with 8 additions and 1 deletions

View File

@ -4405,6 +4405,7 @@ void CGSeerHut::setObjToKill()
if (quest.missionType == CQuest::MISSION_KILL_CREATURE)
{
quest.stackToKill = getCreatureToKill(false)->getStack(0); //FIXME: stacks tend to dissapear (desync?) on server :?
assert(quest.stackToKill.type);
quest.stackToKill.count = 0; //no count in info window
quest.stackDirection = checkDirection();
}