diff --git a/routes/game.js b/routes/game.js index 775b9ff..508c02b 100644 --- a/routes/game.js +++ b/routes/game.js @@ -14,7 +14,7 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => { const team1 = req.body.team1; const team2 = req.body.team2; const selected_map = req.body.selectedMap; - const game_sel = req.body.game_mode.toString(); + const game_sel = req.body.game_sel.toString(); if (team1.trim() != "") { await rcon.execute_command(server_id, `mp_teamname_1 "${team1}"`);