Skip to content

Fix totalWeight not being reset in Clear#18

Merged
nuskey8 merged 1 commit into
nuskey8:mainfrom
basuhei:main
Mar 19, 2026
Merged

Fix totalWeight not being reset in Clear#18
nuskey8 merged 1 commit into
nuskey8:mainfrom
basuhei:main

Conversation

@basuhei

@basuhei basuhei commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

After calling Clear(), adding elements would result in incorrect probability calculations.

@nuskey8 nuskey8 merged commit 45200be into nuskey8:main Mar 19, 2026
@nuskey8

nuskey8 commented Mar 19, 2026

Copy link
Copy Markdown
Owner

Merged the PR. Thanks!

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.

2 participants