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 crates dying while not in the world #8833

Merged

Conversation

obrakmann
Copy link
Contributor

On large maps, it can take the delivery aircraft longer than the crate's
lifetime to reach the paradrop location, so the crate will be destroyed while it's still in the aircraft, leading to an attempt to get a trait from a destroyed object in the Paradrop trait.

This fixes the lifetime logic of crates so that the lifetime will only be increased when the crate is actually in the world. This will probably also better reflect the intention behind the Lifetime property, which I assume was meant to be the time the crate would be on the map available for pickup, rather than the lifetime of the actor itself.

Fixes #8826

On large maps, it can take the delivery aircraft longer than the crate's
lifetime to reach the paradrop location, so the crate will be destroyed while it's still in the aircraft, leading to an attempt to get a trait from a destroyed object in the Paradrop trait.

This fixes the lifetime logic of crates so that the lifetime will only be increased when the crate is actually in the world. This will probably also better reflect the intention behind the Lifetime property, which I assume was meant to be the time the crate would be on the map available for pickup, rather than the lifetime of the actor itself.
@obrakmann obrakmann added this to the Next release milestone Jul 29, 2015
@obrakmann
Copy link
Contributor Author

Adding to the milestone, it's obvious enough to review.

@penev92
Copy link
Member

penev92 commented Jul 29, 2015

👍

Mailaender added a commit that referenced this pull request Jul 29, 2015
…-crash

Fix crates dying while not in the world
@Mailaender Mailaender merged commit c660d32 into OpenRA:bleed Jul 29, 2015
@Mailaender
Copy link
Member

Changelog

@obrakmann obrakmann deleted the fix8826_trait-from-dead-crate-crash branch July 29, 2015 13:44
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.

Game crash Attempted to get trait from destroyed object (crate 1256 (not in world))
3 participants