Rooms: fix endless loop in GlobalRoom.writeNumRooms (#3705)
Rooms: fix endless loop in GlobalRoom.writeNumRooms (#3705)


xfix/Pokemon-Showdown,HoeenCoder/SpacialGaze,jumbowhales/Pokemon-Showdown,HoeenCoder/SpacialGaze,AustinXII/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,Zarel/Pokemon-Showdown,panpawn/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,ShowdownHelper/Saffron,Zarel/Pokemon-Showdown,AustinXII/Pokemon-Showdown,ShowdownHelper/Saffron,QuiteQuiet/Pokemon-Showdown,DesoGit/Tsunami_PS,Enigami/Pokemon-Showdown,HoeenCoder/SpacialGaze,QuiteQuiet/Pokemon-Showdown,urkerab/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,Enigami/Pokemon-Showdown,xfix/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,xfix/Pokemon-Showdown,xCrystal/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,svivian/Pokemon-Showdown,danpantry/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,urkerab/Pokemon-Showdown,svivian/Pokemon-Showdown,HoeenCoder/SpacialGaze,xCrystal/Pokemon-Showdown,xfix/Pokemon-Showdown,Enigami/Pokemon-Showdown,svivian/Pokemon-Showdown,panpawn/Gold-Server,urkerab/Pokemon-Showdown,svivian/Pokemon-Showdown,panpawn/Gold-Server,DesoGit/Tsunami_PS,svivian/Pokemon-Showdown,panpawn/Pokemon-Showdown,AustinXII/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,xfix/Pokemon-Showdown,panpawn/Gold-Server,ShowdownHelper/Saffron,danpantry/Pokemon-Showdown,Zarel/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,Enigami/Pokemon-Showdown,DesoGit/Tsunami_PS,xCrystal/Pokemon-Showdown