rj00a / evenio

An event-driven Entity Component System
MIT License
132 stars 14 forks source link

BlobVec incorrect debug_assert! #31

Closed andrewgazelka closed 5 months ago

andrewgazelka commented 5 months ago

https://github.com/rj00a/evenio/blob/0913f3b23512b2dce58141e3a79428db55c96dca/src/blob_vec.rs#L67

Sending multiple Despawns in succession will cause a panic in debug mode; release mode code appears to function as expected.

https://github.com/andrewgazelka/hyperion/blob/785c1eb56ec7a7493a8cc36fae2848efac387897/server/src/system/kill_all.rs#L24-L26

CleanShot 2024-03-24 at 16 11 06@2x

CleanShot 2024-03-24 at 16 11 17@2x

andrewgazelka commented 5 months ago

CleanShot 2024-03-24 at 18 07 33@2x

perhaps this issue is slightly incorrect, but I still think that some logic in evenio might be wrong.