-
Notifications
You must be signed in to change notification settings - Fork 30
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: random caching error with UnitButtonObject #407
fix: random caching error with UnitButtonObject #407
Conversation
Reviewer's Guide by SourceryThis pull request fixes a caching error that occurred randomly within the UnitButtonObject. The fix involves changing how the UnitButtonObject updates its data. Instead of directly accessing the struct fields using struct_get_names, the code now iterates through the struct fields and updates the corresponding fields in the UnitButtonObject. Additionally, the pull request includes a change to reset the selecting_planet variable in the obj_star_select object under certain conditions and modifies how the hidden_cult variable is accessed. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @OH296 - I've reviewed your changes - here's some feedback:
Overall Comments:
- Please provide a description of the caching issue that was occurring and explain how these changes fix it. The current changes (adding underscore prefix and declaring loop variable) don't obviously address a caching problem.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
@sourcery-ai review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @OH296 - I've reviewed your changes - here's some feedback:
Overall Comments:
- Please provide a description of the caching error you encountered and how these changes fix it. This will help reviewers understand and verify the fix.
- Please check the testing boxes that apply to indicate what testing has been performed on these changes.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Description of changes
Reasons for changes
Related links
How have you tested your changes?
Summary by Sourcery
Bug Fixes: