fix rmobjective command and add completion options (#36396)

fix rmobjective command
This commit is contained in:
slarticodefast
2025-04-08 16:54:13 +02:00
committed by GitHub
parent e6ea77d21b
commit b276524468
3 changed files with 62 additions and 19 deletions

View File

@@ -371,7 +371,7 @@ public abstract partial class SharedMindSystem : EntitySystem
// garbage collection - only delete the objective entity if no mind uses it anymore
// This comes up for stuff like paradox clones where the objectives share the same entity
var mindQuery = new AllEntityQueryEnumerator<MindComponent>();
var mindQuery = AllEntityQuery<MindComponent>();
while (mindQuery.MoveNext(out _, out var queryComp))
{
if (queryComp.Objectives.Contains(objective))