30.12.2017, 12:18
Solved. For anyone interested in solution, don't use too big arrays in your local variables. 2028 was unnecessarily big and I knew that but was kinda in a rush to publish this system and had plans to optimize it later on. Just don't.