Closed Ramilito closed 1 month ago
sorry!
No worries! I didn't see it either! It just exposed that we aren't doing proper functional programming, which we probably should, will make an issue to create readonly tables to make sure the state doesn't get corrupt!
158 Introduced a bug since lua doesn't send tables by value and instead uses reference, that was fine when we didn't have the values stored in a variable (hardcoded parameters) but started getting corrupt when sent into a function that manipulates the input parameter.
Solved it by making copies of the arguments but the correct solution is to use immutable tables for readonly values.