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 MultiplayerPawnComp init for pawns with no comps (like Toxalope) #418

Conversation

SokyranTheDragon
Copy link
Member

If a pawn has no comps, then ThingWithComps.comps is never initialized and being left as null, in which case ThingWithComps.AllComps will return ThingWithComps.EmptyCompsList.

The fix here is to initialize ThingWithComps.comps if it was null.

If a pawn has no comps, then `ThingWithComps.comps` is never initialized and being left as null, in which case `ThingWithComps.AllComps` will return `ThingWithComps.EmptyCompsList`.

The fix here is to initialize `ThingWithComps.comps` if it was null.
@SokyranTheDragon SokyranTheDragon added fix Fixes for a bug or desync. 1.4 Fixes or bugs relating to 1.4 (Not Biotech). labels Jan 12, 2024
@Zetrith Zetrith merged commit c4c2173 into rwmt:master Feb 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.4 Fixes or bugs relating to 1.4 (Not Biotech). fix Fixes for a bug or desync.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants