Problem Description
Coding error
Attach a Capx
function getListRoomAt(roomList, i)
{
if (!roomList)
return null;
i = Math.floor(i);
if (i < 0 || i >= roomList.length)
return nul; <------------------------------------
return roomList;
};
Description of Capx
Steps to Reproduce Bug
- Call Multiplayer.ListRoomName with a bad index
Observed Result
I ended up getting an empty list (which may be another issue), and accidentally passed a bad index (-1). Game crashed referencing the bad "nul" line.
Expected Result
return null;
Affected Browsers
- Chrome: (YES/NO)
- FireFox: (YES/NO)
- Internet Explorer: (YES/NO)
Operating System and Service Pack
N/A
Construct 2 Version ID
169