Jelajahi Sumber

Fehler behoben, der die zuweisung von Shop Servern verhindert hat

Kolja Strohm 6 tahun lalu
induk
melakukan
e4c24b5df4
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      MainServer/Datenbank.cpp

+ 1 - 1
MainServer/Datenbank.cpp

@@ -330,7 +330,7 @@ int MSDatenbank::suchShopServer( unsigned int client )
     }
     res.destroy();
     lock();
-    if( !datenbank->befehl( "SELECT a.id, count( b.client_id ) AS anz FROM server a, server_client b WHERE a.id = b.server_id AND a.server_typ_name = 'shop' AND a.server_status_id = 3 GROUP BY a.id ORDER BY anz LIMIT 1"  ) )
+    if( !datenbank->befehl( "SELECT a.id, count( b.client_id ) AS anz FROM server a LEFT JOIN server_client b ON a.id = b.server_id WHERE a.server_typ_name = 'shop' AND a.server_status_id = 3 GROUP BY a.id ORDER BY anz LIMIT 1"  ) )
     {
         unlock();
         return 0;