MantisBT - VCMI
View Issue Details
0001763VCMIMechanics - Battlespublic2014-03-28 05:042022-04-12 08:58
exfizik 
AlexVinS 
normalmajoralways
closedfixed 
Linux 64 bitOpenSuse12.3
0.95 
0.95c 
0001763: Game crashes when attempting to resurrect
When I cast resurrect on a still living stack located on a grid cell where another friendly stack died before (in the same battle), the game crashes. I suppose the game gets confused which stack to apply the spell to.

Here is the console error message:
Cannot resurrect Battle stack [2]: 0 creatures of Master Genies from slot 2 of armyobj=3861 because hex {BattleHex: x '15', y '1', hex '32'} is occupied!
Error: server failed to close correctly or crashed!

Master genies are the stack that died before. I was attempting to cast Resurrection on Nagas sitting on the dead genies.
No tags attached.
related to 0000525assigned AVS Selection of Resurrection target with mutiple dead creatures on a hex 
? q111aaaa123Aaaa.vsgm1 (2,835,123) 2014-03-28 05:04
https://bugs.vcmi.eu/file_download.php?file_id=1789&type=bug
Issue History
2014-03-28 05:04exfizikNew Issue
2014-03-28 05:04exfizikFile Added: q111aaaa123Aaaa.vsgm1
2014-03-28 05:06exfizikNote Added: 0004624
2014-03-28 06:46WarmongerNote Added: 0004625
2014-05-17 05:49AlexVinSAssigned To => AlexVinS
2014-05-17 05:49AlexVinSStatusnew => assigned
2014-05-17 09:29AlexVinSNote Added: 0004662
2014-05-17 09:29AlexVinSStatusassigned => resolved
2014-05-17 09:29AlexVinSFixed in Version => 0.95c
2014-05-17 09:29AlexVinSResolutionopen => fixed
2014-05-17 20:07WarmongerRelationship addedrelated to 0000525
2022-04-12 08:58PovelitelStatusresolved => closed

Notes
(0004624)
exfizik   
2014-03-28 05:06   
I'm using a post 0.95 svn build.
(0004625)
Warmonger   
2014-03-28 06:46   
Just telling that savegame consists of 2 files.
(0004662)
AlexVinS   
2014-05-17 09:29   
Fixed in https://github.com/vcmi/vcmi/commit/573293d42519b9aa58ec8f40d4af10828009487f [^]

Please test