From 7c6dc7a7dbcebb7fee90000204c58d9d6bdde174 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 29 Dec 2019 04:49:28 +0100 Subject: [PATCH] Fix premature exit when only one .grp file is available --- source/common/gamecontrol.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/common/gamecontrol.cpp b/source/common/gamecontrol.cpp index 4ec3aeb51..e0c5f56d3 100644 --- a/source/common/gamecontrol.cpp +++ b/source/common/gamecontrol.cpp @@ -464,6 +464,10 @@ static TArray SetupGame() groupno = pick; } } + else if (groups.Size() == 1) + { + groupno = 0; + } } if (groupno == -1) return TArray();