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

Turning "High Beam" on in SRV throws a fatal error in ED_Warthog_Target_Script_Addon.exe #37

Open
ClickerNZ opened this issue Feb 6, 2020 · 0 comments

Comments

@ClickerNZ
Copy link
Contributor

ClickerNZ commented Feb 6, 2020

Recent addition of srvHighBeam (bit 31) in the Flags key value in status.json, when set, now causes the addon.exe program to throw a fatal error.

When bit 31 is set in the Flags key value, it causes the key value integer to exceed the maximum 32 bit signed integer value.

Changing the following to call for an unsigned integer return solves this issue;

// v_Flags = status["Flags"].GetInt();
v_Flags = status["Flags"].GetUint();

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

1 participant