Fix LogError on 5.1 editor starturp#441
Closed
a-dmg wants to merge 1 commit intoShadowfallStudios:mainfrom
a-dmg:fix-editor-statup-LogError
Closed
Fix LogError on 5.1 editor starturp#441a-dmg wants to merge 1 commit intoShadowfallStudios:mainfrom a-dmg:fix-editor-statup-LogError
a-dmg wants to merge 1 commit intoShadowfallStudios:mainfrom
a-dmg:fix-editor-statup-LogError
Conversation
This commits adds default values to struct's members without a proper default initializer. Thus silencing LogError on startup for member considered not initialized properly.
|
Would it not be better to go through and instead of making the struct messier with these instead "fix" the structs so they are properly laid out by moving all of the variables into constructors? Example: ` |
Author
|
@KITATUS Thanks for your suggestion! However, declaring members with default values doesn't make the struct messier. Assigning them within the constructor is not a good idea, in my opinion, as this leaves room for mistakes such as forgetting to default initialize one member (again) and lead to this error again: |
Member
|
Fixed in dev branch. Closed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dear @dyanikoglu ,
I would like to propose this simple commit that silences a set of LogError on editor startup (v5.1). Those interfere with other plugins' logs at start-up and could be annoying.
Here is a sample of the LogError I have:
Let me know if there is some stuff you want to change?
Thank you for your awesome job with ALS-Community!
Cheers,
Alice