Skip to content

[buff] Short circuit if buff is fallback#11597

Merged
renanthera merged 6 commits into
simulationcraft:midnightfrom
renanthera:12.1/68569-early-return-if-buff-is-fallback
Jul 18, 2026
Merged

[buff] Short circuit if buff is fallback#11597
renanthera merged 6 commits into
simulationcraft:midnightfrom
renanthera:12.1/68569-early-return-if-buff-is-fallback

Conversation

@renanthera

@renanthera renanthera commented Jul 16, 2026

Copy link
Copy Markdown
Member

Check if buff_t::is_fallback is true and short circuit for all buff_t (and derived type) member functions that are setters or immediately check for buff data validity.

Non-setters were avoided as they tend to be called more frequently.

@renanthera
renanthera merged commit 4afa093 into simulationcraft:midnight Jul 18, 2026
85 of 90 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant