[Bug] Crash after auto resolve battle /latest SVN[message #259614]
|
Mon, 16 August 2010 18:14
|
|
rp- |
|
Messages:13
Registered:June 2008 Location: Austria |
|
|
Hi!
I encountered this bug while my militia defended Drassen, after they won I pressed the "Done" button and the game crashed:
Segmentation fault
1002: wp = wp->next;
(gdb) backtrace
#0 0x0000000000527c90 in CalculateNextMoveIntention (pGroup=0x1c56050)
at /home/rp/work/coding/ja2-stracciatella/Build/Strategic/Strategic_Movement.cc:1002
#1 0x00000000004c1d99 in EliminateAllEnemies (ubSectorX=13 '\r',
ubSectorY=4 '\004')
at /home/rp/work/coding/ja2-stracciatella/Build/Strategic/Auto_Resolve.cc:393
#2 0x00000000004c6fd4 in RemoveAutoResolveInterface (delete_for_good=true)
at /home/rp/work/coding/ja2-stracciatella/Build/Strategic/Auto_Resolve.cc:1926
#3 0x00000000004c249d in AutoResolveScreenHandle ()
at /home/rp/work/coding/ja2-stracciatella/Build/Strategic/Auto_Resolve.cc:581
#4 0x0000000000463fe1 in GameLoop ()
at /home/rp/work/coding/ja2-stracciatella/Build/GameLoop.cc:302
#5 0x000000000069cf8b in MainLoop ()
at /home/rp/work/coding/ja2-stracciatella/sgp/SGP.cc:250
#6 0x000000000069d03c in main (argc=1, argv=0x7fffffffe688)
at /home/rp/work/coding/ja2-stracciatella/sgp/SGP.cc:298
It seems the GROUP argument is invalid, but not NULL. My workaround is to check if the group has a valid ID (!= 0) otherwise I exit the function.
Report message to a moderator
|
Private
|
|
|
|
|
|
|