mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 15:34:38 +01:00
use default currentplayers integer on fail
This commit is contained in:
@@ -50,7 +50,7 @@ func encodeServerInfo(config *config.Config, s *Server) []byte {
|
||||
bf.WriteUint16(ci.MaxPlayers)
|
||||
err := s.db.QueryRow("SELECT current_players FROM servers WHERE server_id=$1", sid).Scan(¤tplayers)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
currentplayers = 0
|
||||
}
|
||||
bf.WriteUint16(currentplayers)
|
||||
bf.WriteUint32(0)
|
||||
|
||||
Reference in New Issue
Block a user