MSUTeam / MSU

Modding Standards and Utilities for Battle Brothers
21 stars 4 forks source link

[BUG] tostring() in setting_page.nut not returning a string #362

Closed OberKnirps closed 2 months ago

OberKnirps commented 3 months ago

Versions

Describe the bug The function tostring() in setting_page.nut looks like this:

function tostring()
{
    local ret = "Name: " + this.getName() + " | ID: " + this.getID() + " | Settings:\n";

    foreach (setting in this.Settings)
    {
        ret += " " + setting;
    }
}

but should return a string and probably look like this:

function tostring()
{
    local ret = "Name: " + this.getName() + " | ID: " + this.getID() + " | Settings:\n";

    foreach (setting in this.Settings)
    {
        ret += " " + setting;
    }
    return  ret;
}
Enduriel commented 2 months ago

Fixed with 26bd54c046bb10158275cbb3c3fbdf8c41052d19