MantisBT - VCMI
View Issue Details
0002374VCMIAI - Adventure Mappublic2016-01-13 22:072022-03-17 10:45
Kantor 
SXX 
highminoralways
assignedopen 
0.98f 
 
0002374: VisitHero::fulfillsMe goal check used after battle with killed hero
Crash happens after Aislinn (green player) and Piquedram (tan player) battle.
No tags attached.
has duplicate 0002390closed vmarkovtsev VisitHero::fulfillsMe segfaults if the object is not found 
related to 0001590closed SXX border guard - useless expenditure of a turn. 
7z Saves.7z (784,625) 2016-01-13 22:07
https://bugs.vcmi.eu/file_download.php?file_id=2422&type=bug
Issue History
2016-01-13 22:07KantorNew Issue
2016-01-13 22:07KantorStatusnew => assigned
2016-01-13 22:07KantorAssigned To => Warmonger
2016-01-13 22:07KantorFile Added: Saves.7z
2016-01-14 06:11SXXRelationship addedrelated to 0002350
2016-01-14 06:12SXXNote Added: 0006271
2016-01-14 06:16SXXAssigned ToWarmonger => SXX
2016-01-14 06:22SXXSummaryAI crash => AI crash on attempt to visit removed hero
2016-01-14 06:35SXXSummaryAI crash on attempt to visit removed hero => AI crash on attempt to use removed hero object
2016-01-14 06:38SXXNote Added: 0006272
2016-01-14 06:44SXXSeverityminor => crash
2016-01-19 21:58SXXRelationship addedhas duplicate 0002390
2016-01-19 22:07SXXSummaryAI crash on attempt to use removed hero object => VisitHero::fulfillsMe goal check used after battle with killed hero
2016-01-19 22:07SXXRelationship deletedrelated to 0002350
2016-01-23 19:15SXXPrioritynormal => high
2016-01-23 19:15SXXSeveritycrash => minor
2016-01-23 19:16SXXNote Added: 0006361
2016-01-31 19:26SXXRelationship addedrelated to 0001590
2022-03-17 10:45PovelitelNote Added: 0008156

Notes
(0006271)
SXX   
2016-01-14 06:12   
May be related to issue with boat: 0002350
(0006272)
SXX   
2016-01-14 06:38   
So it's not really the case like with the boat, but just a bad code. It's uses AI goal VisitHero pointer to hero object after killing it.
(0006361)
SXX   
2016-01-23 19:16   
As crash fixed within 0002390 that now less important bug. Though fact that VISIT_HERO used for enemies that may be killed make me think problem may cause some issues with AI as well.
(0008156)
Povelitel   
2022-03-17 10:45   
Could not be repeated in the current develop. AI behaves differently. Aislin does not go to kill Pikedram, he is killed by another hero after a while. And there is no crash.