Skip to content

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

@ClickerNZ

Description

@ClickerNZ

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions