1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 15:52:55 +08:00

Avoid excessive property lookups

This commit is contained in:
Dean Herbert 2018-05-21 03:56:59 +09:00
parent 9cd0ec366e
commit aaca7e92b4

View File

@ -61,15 +61,15 @@ namespace osu.Game.Screens.Multi.Components
maxParticipantsBind.UnbindBindings();
participantsBind.UnbindBindings();
if (Room != null)
if (room != null)
{
nameBind.BindTo(Room.Name);
hostBind.BindTo(Room.Host);
statusBind.BindTo(Room.Status);
typeBind.BindTo(Room.Type);
beatmapBind.BindTo(Room.Beatmap);
maxParticipantsBind.BindTo(Room.MaxParticipants);
participantsBind.BindTo(Room.Participants);
nameBind.BindTo(room.Name);
hostBind.BindTo(room.Host);
statusBind.BindTo(room.Status);
typeBind.BindTo(room.Type);
beatmapBind.BindTo(room.Beatmap);
maxParticipantsBind.BindTo(room.MaxParticipants);
participantsBind.BindTo(room.Participants);
}
updateState();