xy há 1 semana atrás
pai
commit
bff94ca72a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/server/game/ludo/match.go

+ 1 - 1
src/server/game/ludo/match.go

@@ -25,8 +25,8 @@ func matchRoom(matchInfo *msg.MatchLudo, userId string, user_agent gate.Agent) {
 
 	if len(roomList) == 0 {
 		// Create new room if none available
-		room_info := CreateRoom(matchInfo, userId)
 		log.Error("没找到房间匹配一个!")
+		room_info := CreateRoom(matchInfo, userId)
 		if room_info == nil {
 			sendMatchErrorMsg(user_agent, 101, "not find player")
 		}