Sasszem / 13

Recreation of a simple but addictive game
MIT License
0 stars 0 forks source link

Crash on undo #57

Closed Sasszem closed 4 years ago

Sasszem commented 4 years ago

Sometimes pressing Undo crashes the game. Strack trace shows src/Undo.lua:48

Sasszem commented 4 years ago

Little debug: It happens when you happen to hit Undo when the merge animation has already deleted the merged cells, but did not yet create new cells. Undo tries to fill a smaller CellPool, and thus and indexing error occurs. Possible solution: do not delete cells, just override their parameters!