Skip to content

Wrong icon appears when codename is a substring of another codename #996

Description

@ashleygruver

To reproduce:

  1. Download and use Brawlout assets
  2. Set character as Acolyte (codename: Walrus_Undead) and note that everything works normally and the correct icon displays
  3. Set character as Olaf Tyson (codename: Walrus) and note that the icon displayed is Acolyte's and skin icons do not work
  4. The same can be accomplished with Sephi'ra/Sting'ra, Paco/Mako, and Volt/Vandal

This only occurs if the longer codename has an "_" character immediately after the codename of the shorter one (Ex: King Apu codename: Monkey and Funkmaster codename: MonkeyDisco behave normally)

It seems to always use the last alphabetical instance of characters with the same starting substring

It is unknown if it happens with any substring or only the start

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