mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r25934) -Fix [FS#5793]: Do not access items from other pools in pool item destructors during pool cleaning.
This commit is contained in:
parent
3a1fbc091e
commit
2a16d139a2
|
@ -41,6 +41,10 @@ LinkGraphJob::~LinkGraphJob()
|
|||
{
|
||||
assert(this->thread == NULL);
|
||||
|
||||
/* Don't update stuff from other pools, when everything is being removed.
|
||||
* Accessing other pools may be invalid. */
|
||||
if (CleaningPool()) return;
|
||||
|
||||
/* Link graph has been merged into another one. */
|
||||
if (!LinkGraph::IsValidID(this->link_graph.index)) return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue