Crash in SetInterestGroups method when providing new byte[0] as parameter.

Options
Hello,

I've updated PUN to the latest Version 1.86.1
The method SetInterestGroups results in an Unity crash at line:

for (byte index = 0; index <= byte.MaxValue; index++)
{
this.allowedReceivingGroups.Add(index);
}

If I change "<=" to "<" it works.

Greetings!

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @NickNack84,

    Thank you for choosing Photon and for your contribution!

    We are aware of this stackoverflow exception and we already have a fix for the next version.
    The right way to do it is to change type of loop counter/iterator from byte to int.

    We will be rethinking and reworking the whole interest groups system in PUN.