SIGSEGV if player and enemy are on the same position
Issue #115
new
To reproduce the error:
- jump down and stand on the same position with the enemy
- if resolution is default: the application hangs for a couple of seconds
- if non-default resolution: a SIGSEV is fired
(gdb) r -res 800x600 -window -resversion GERMAN
...
Program received signal SIGSEGV, Segmentation fault.
0x0000000100209cf5 in CalcChanceToGetThrough (pBullet=0x100870660)
at Build/Tactical/LOS.cc:2525
2525 if (pStructure->fFlags & ALWAYS_CONSIDER_HIT)
(gdb) print pStructure
$1 = (STRUCTURE *) 0x1101110110e11101
(gdb) print pMapElement
$2 = (MAP_ELEMENT *) 0x10734e4b8
(gdb) display *pMapElement
2: *pMapElement = {
{
{
pLandHead = 0x10c110e110c110e1,
pLandStart = 0x10c108c110c110c1,
pObjectHead = 0x10c110c110e110c1,
pStructHead = 0x10e110c110e110c1,
pShadowHead = 0x10e110e110e110c1,
pMercHead = 0x1101110111011101,
pRoofHead = 0x8c110c110e11101,
pOnRoofHead = 0x10e110e110c110c1,
pTopmostHead = 0x10e1110111011101
},
pLevelNodes = {0x10c110e110c110e1, 0x10c108c110c110c1, 0x10c110c110e110c1,
0x10e110c110e110c1, 0x10e110e110e110c1, 0x1101110111011101, 0x8c110c110e11101,
0x10e110e110c110c1, 0x10e1110111011101}
},
pStructureHead = 0x1101110110e11101,
pStructureTail = 0x1101110111011101,
uiFlags = 6434,
ubExtFlags = "\"\031",
sHeight = 34 '"',
ubAdjacentSoldierCnt = 25 '\031',
ubTerrainID = 34 '"',
ubReservedSoldierID = 25 '\031',
ubBloodInfo = 33 '!',
ubSmellInfo = 25 '\031'
}
Darwin, OSX 10.9, x86_64
Hmmm, I can't reproduce that behaviour. If I order Kiddo to climb down at the spot she is right now, she climbs down on the other side of the corner instead.
If I lure the Enemy to a position where Kiddo has nowhere else to climb down, but onto the soldiers head, she refuses to climb down all along.
Which resource files do you use (JA2, JA2-Gold, English, Russian....)?
[EDIT] forget that last part, you wrote that in the stacktrace.
Sadly I only have JA2-Gold in the English version, and no OSX at hand, so I cannot test.