Slovenia trailed Hungary 49-48 at halftime in their World Cup qualifier, after taking a six-point lead into the second quarter.

Coach Domen Zevnik opened the game with Klemen Prepelič, Urban Kroflič, Miha Cerkvenik, Alen Omić and Bine Prepelič. Both teams scored freely in the opening minutes, while Kroflič picked up two personal fouls in less than two minutes, including one on offense.

Greg Hrovat’s three-pointer with six minutes left in the first quarter gave Slovenia its first lead. The teams traded the advantage before Leon Stergar scored from almost halfway in the final second of the quarter. Slovenia led 31-25, with Hrovat its top scorer on 10 points.

The match followed Slovenia’s defeat by Finland, after which the team’s nervous reactions, focus on refereeing decisions and the ejections of Klemen Prepelič and Martin Krampl were described as worsening its predicament. Zevnik said the team had reviewed that game and needed to show a different approach against Hungary. “After the game against Finland, we talked, did an analysis and I believe we have processed it. Against Hungary we have to show a different face. We have to be confident and get the win with the right attitude,” he said before the trip to Szombathely. Zevnik is also coach of Novo Mesto’s Krka.

With three rounds remaining in qualifying, Slovenia entered the game fourth in Group L with four wins and five losses. France had already qualified for the World Cup in Qatar, while Finland had two more wins than Slovenia and third-placed Sweden had one more. Third place secures a place at the tournament, which Qatar will host next year.

Slovenia has a better head-to-head record against Sweden, which still has games against France, Finland and Hungary. France and Sweden were due to meet in Dijon at 20:30 on the night of the Slovenia-Hungary game.

Three Slovenian wins would guarantee qualification if the team also beat Finland away by at least 16 points, overturning its deficit from their first meeting. Slovenia could also qualify with fewer than three wins, depending on other results. A loss in Szombathely would not mathematically end its chances, but Slovenia would then need to beat France and Finland in February and rely on results elsewhere.

One possible route after a loss would require Sweden to lose to France and Finland, then beat Hungary in the final round, with Hungary also losing to Estonia beforehand. If Slovenia won both of its remaining games, it and Sweden would finish with six wins each, with Slovenia ahead on the head-to-head record, provided France and Finland also beat Estonia.

Hungary also came into the game after a loss, having been beaten 88-81 by Sweden on Friday. Its coach is Slovenian Gašper Okorn, who also leads Ljubljana’s Ilirija. Slovenia beat Hungary 92-77 in Tivoli, Ljubljana, three months earlier, but changes to both squads mean that result may not reflect the teams’ current strength.

Slovenia was without Luka Dončić, who has NBA commitments, as well as Žiga Samar, Aleksej Nikolić and Vlatko Čančar, who was not fully fit. Luka Ščuka had requested to miss the international window, Baskonia did not release Stefan Joksimović, and Mark Padjen had commitments in the United States.

Hungary was missing Valencia centre Nathan Reuvers through injury. He had scored 21 points to lead Hungary against Slovenia in August. Tamas Pallai was also out with a knee injury.