]> git.deb.at Git - rhonda/impostor.git/commit
Don't clear RoleOptions on update
authorminiduikboot <mini@duikbo.at>
Thu, 22 May 2025 23:08:59 +0000 (01:08 +0200)
committerminiduikboot <mini@duikbo.at>
Wed, 28 May 2025 20:34:57 +0000 (22:34 +0200)
commit46a6005ba51afd39edcb0371371a771ad1e739d0
tree120b8b5d6692f52efecbd2619f0b1a9655476600
parent0ac0b1d4031cc7dc38074b8947e9082035378b01
Don't clear RoleOptions on update

Among Us always adds a constant amount of roles to this dict, so it
doesn't make sense to clear this dictionary every time.

Furthermore, previously it was possible to trigger a
ConcurrentModificationException when running Deserialize in parallel
with Serialize. This should no longer happen, as new keys are no longer added
src/Impostor.Api/Innersloth/GameOptions/RoleOptions/RoleOptionsCollection.cs