MantisBT - VCMI
View Issue Details
0001255VCMIMechanics - Adventure Mappublic2013-04-21 07:022014-05-30 17:43
Warmonger 
Warmonger 
highcrashalways
closedfixed 
 
0.930.93 
0001255: AI crashes at School of War / School of Magic
Every time AI attempts to visit such object, game crashes. Debugger claims that game wants to give gold to player 254.
Easily reproductible on any random map with such objects.
No tags attached.
Issue History
2013-04-21 07:02WarmongerNew Issue
2013-04-22 11:57WarmongerAssigned To => Warmonger
2013-04-22 11:57WarmongerStatusnew => assigned
2013-04-22 12:54WarmongerNote Added: 0003506
2013-04-22 13:06WarmongerNote Edited: 0003506bug_revision_view_page.php?bugnote_id=3506#r2168
2013-04-22 13:25WarmongerNote Added: 0003507
2013-04-22 13:25WarmongerStatusassigned => resolved
2013-04-22 13:25WarmongerFixed in Version => 0.93
2013-04-22 13:25WarmongerResolutionopen => fixed
2014-05-30 17:43beegeeStatusresolved => closed

Notes
(0003506)
Warmonger   
2013-04-22 12:54   
(edited on: 2013-04-22 13:06)
The bug is caused function
void CGVisitableOPH::schoolSelected(ObjectInstanceID heroID, ui32 which) const

The issue is that heroID does not match the ID of visiting hero. Will tr to fix it by using hero pointer, as everywhere else, but still this has worked so far.

(0003507)
Warmonger   
2013-04-22 13:25   
Fixed in r3347. There was another bug (missing break) in the code anyway.