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 Carryall InitialActor creation. #19620

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

pchote
Copy link
Member

@pchote pchote commented Aug 20, 2021

Fixes #19619, which is caused by a bug in #19068.

Carryable.Attached was being called with the wrong actor, which meant that carriedToken was being assigned a bogus token value that just happened to match a condition owned by GrantConditionOnDamageState. Carryable.Detached revoked the token out from under GrantConditionOnDamageState, putting the actor into an inconsistent state that causes a crash when that trait legitimately tried to revoke that condition some time later.

@dnqbob
Copy link
Contributor

dnqbob commented Aug 20, 2021

Going to running some test case.

@dnqbob
Copy link
Contributor

dnqbob commented Aug 20, 2021

So far so good!

Copy link
Member

@MustaphaTR MustaphaTR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run a test game on SP with the fix applied and watched the AI Carryalls. Seem to be fixing the crash and the change looks correct.

@dnqbob
Copy link
Contributor

dnqbob commented Aug 20, 2021

2 hours test passed

@reaperrr reaperrr merged commit d509d3f into OpenRA:bleed Aug 20, 2021
@pchote pchote deleted the fix-carryall-initialactor branch August 21, 2021 10:11
@dnqbob
Copy link
Contributor

dnqbob commented Aug 21, 2021

Thanks!

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.

A crash related to revoking condition in GrantConditionOnDamageState
5 participants