Skip to content

icon_state = null initializes as "" instead of null #2632

@tontyGH

Description

@tontyGH

This behavior actually is depended on for certain icon-related SS13 unit tests, as icon_state = null implies an unset icon_state rather than an unnamed icon_state to them.

Note: setting icon_state to null after the object is initialized will set it to null. The prototype is what has the incorrect value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions