mirror of https://github.com/OpenTTD/OpenTTD
(svn r25934) -Fix [FS#5793]: Do not access items from other pools in pool item destructors during pool cleaning.
parent
3a1fbc091e
commit
2a16d139a2
|
@ -41,6 +41,10 @@ LinkGraphJob::~LinkGraphJob()
|
||||||
{
|
{
|
||||||
assert(this->thread == NULL);
|
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. */
|
/* Link graph has been merged into another one. */
|
||||||
if (!LinkGraph::IsValidID(this->link_graph.index)) return;
|
if (!LinkGraph::IsValidID(this->link_graph.index)) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue