Skip to content

GetUnitCommandData crashes the game when passed nil. #153

Description

@4z0t

UI_Lua GetUnitCommandData(nil) for testing. It is inconsisntent but eventually it crashes the game.

Proposed fix:

  • add guard that checks whether argument is table.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions