Skip to content

Commit

Permalink
Fixed issues on queue overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Dec 14, 2024
1 parent 1d42961 commit 4ce8671
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/structure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6397,6 +6397,10 @@ void factoryProdAdjust(STRUCTURE *psStructure, DROID_TEMPLATE *psTemplate, bool
//need to check if this was the template that was mid-production
if (getProduction(psStructure, FactoryGetTemplate(psFactory)).numRemaining() == 0)
{
if (psFactory->psSubject && psFactory->psSubject->next)
{
return;
}
doNextProduction(psStructure, FactoryGetTemplate(psFactory), ModeQueue);
}
else if (!StructureIsManufacturingPending(psStructure))
Expand Down

0 comments on commit 4ce8671

Please sign in to comment.