Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C# client] This simple Func<float, float> crashes the client #840

Open
duydang2311 opened this issue Jan 16, 2024 · 1 comment
Open

[C# client] This simple Func<float, float> crashes the client #840

duydang2311 opened this issue Jan 16, 2024 · 1 comment

Comments

@duydang2311
Copy link
Contributor

duydang2311 commented Jan 16, 2024

In my code, I found out that a Func<float, float> is crashing the game when it gets executed.

I'm able to reproduce the crash with the minimal code below. Nothing related to the crash is logged to the client.

Alt.OnConnectionComplete += () =>
{
    var x = (float y) => y;
    x(1); // crashes here
};

This seems to happen only to local declared function and lambda expression because this static method works fine.

private static float x(float y) => y;
  • Server: 16.0.0-dev.158
  • Nuget: 16.0.0-dev.21
@M1raclee
Copy link

M1raclee commented Feb 16, 2024

I also stucked with this problem and similar with int/byte (#843)
Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants