(svn r25236) -Fix [FS#5547]: crash when AI is executing a command as it is bankrupted (removed from the game)
The command is placed in a queue for processing before it is bankrupted, after that the command is executed. This command yields a failure because the company does not exist, but then it still needs to call the callback. This callback tries to access the AI's virtual machine without any checks, so it starts to read a just freed pointer and segfaults.replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
parent
5931faeff6
commit
001fdc3682
Loading…
Reference in New Issue