mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 02:42:42 +01:00
Codechange: replace 'new PoolItem(...' with 'PoolItem::Create(...'
This commit is contained in:
@@ -43,7 +43,7 @@ void LinkGraphSchedule::SpawnNext()
|
||||
assert(next == LinkGraph::Get(next->index));
|
||||
this->schedule.pop_front();
|
||||
if (LinkGraphJob::CanAllocateItem()) {
|
||||
LinkGraphJob *job = new LinkGraphJob(*next);
|
||||
LinkGraphJob *job = LinkGraphJob::Create(*next);
|
||||
job->SpawnThread();
|
||||
this->running.push_back(job);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user