Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix actors being added to world while world actors are being iterated #20803

Merged
merged 1 commit into from
Apr 15, 2023

Conversation

PunkPun
Copy link
Member

@PunkPun PunkPun commented Apr 12, 2023

Mirrors

// The actor must be added to the world at the end of the tick
var a = Context.World.CreateActor(false, type, initDict);
if (addToWorld)
Context.World.AddFrameEndTask(w => w.Add(a));
return a;

@PunkPun PunkPun added this to the Next Release milestone Apr 12, 2023
@Mailaender Mailaender merged commit 1db9822 into OpenRA:bleed Apr 15, 2023
@Mailaender
Copy link
Member

Changelog

@PunkPun PunkPun deleted the fix-lua branch April 15, 2023 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants