Script compiler accesses wrong memory address and crashes in a very specific case: when you have 2 sequential lines of "readonly" struct members, each of them having a syntax error in one of the keywords following "readonly" keyword.
Script example:
Note, both of the member declarations have syntax error in the type names.
Crash happens essentially because the compiler attempts to access an array by index "-1".
Script example:
Code: Adventure Game Studio
- struct MyStruct
- {
- readonly int2 a;
- readonly int2 b;
- };
Note, both of the member declarations have syntax error in the type names.
Crash happens essentially because the compiler attempts to access an array by index "-1".