diff options
author | rubidium <rubidium@openttd.org> | 2013-05-12 13:12:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-05-12 13:12:55 +0000 |
commit | 001fdc3682bd514b31f7c3a0a916720af056b00b (patch) | |
tree | 1093ba1956b68079deaba48c0d65b0496b9ddfd3 /src/toolbar_gui.cpp | |
parent | 5931faeff6afd9c9a76410aa756f3dc4effed29d (diff) | |
download | openttd-001fdc3682bd514b31f7c3a0a916720af056b00b.tar.xz |
(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.
Diffstat (limited to 'src/toolbar_gui.cpp')
0 files changed, 0 insertions, 0 deletions