|
@@ -53,7 +53,7 @@ func GetRoomsByLevel(matchInfo *msg.MatchLudo, roomStatus msg.RoomStatus) []*msg
|
|
|
roomLevel := matchInfo.RoomLevel
|
|
|
color := matchInfo.SelectColor
|
|
|
roomType := matchInfo.SelectRoomType
|
|
|
- var result []*msg.RoomInfo
|
|
|
+ var result []*msg.RoomInfo = make([]*msg.RoomInfo, 0)
|
|
|
for _, room := range gameConfig.RoomMap {
|
|
|
if roomType == room.RoomType && room.RoomLevel == roomLevel && room.RoomStatus == roomStatus && IsMatchColor(room, color) {
|
|
|
result = append(result, room)
|