1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 06:23:47 +08:00

Add note about why RoomID is nulled in DeepClone

This commit is contained in:
Dean Herbert
2022-02-23 17:07:29 +09:00
Unverified
parent f14a9af801
commit 43c83d2de1
+2
View File
@@ -162,6 +162,8 @@ namespace osu.Game.Online.Rooms
var copy = new Room();
copy.CopyFrom(this);
// ID must be unset as we use this as a marker for whether this is a client-side (not-yet-created) room or not.
copy.RoomID.Value = null;
return copy;