Closed MortimerSnerd closed 1 year ago
Thanks for the repro, fixed here: https://github.com/aardappel/lobster/commit/02b117c576453b9dbefa01d80a7ced1a1f522261
Are you ok me adding your repro to tests/misc
?
Yes, that's fine. Thanks for looking at it.
I'm on commit 764661230bf8524b48c62248fc2ed41803c675ea
This is actually the assertion I mentioned in discord. For the
collision_shape
class and it's subclasscsphere
below, having thebody
parameter with no explicit type will cause an assertion in lobster debug. The 4 uses offor_brushes_colliding_with_shape
towards the bottom of the file are necessary to get the assertion to happen. The rest of the defs are to make it happy enough to get to the type checking phase.When the code runs without an assertion, it's just going to pop an index out of range error.
Here is the one file repro code: