Skip to content

Commit 25c0409

Browse files
committed
Try to fix gcc-9 job by manually defining CheatsFixture ctor
1 parent 18f1eb0 commit 25c0409

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/s25Main/integration/testCheats.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@ constexpr auto worldWidth = 64;
1717
constexpr auto worldHeight = 64;
1818
struct CheatsFixture : WorldFixture<CreateEmptyWorld, numPlayers, worldWidth, worldHeight>
1919
{
20+
CheatsFixture()
21+
: cheats{gameDesktop.GI_GetCheats()}, viewer{gameDesktop.GetView().GetViewer()}, p1HQPos{p1.GetHQPos()}
22+
{}
23+
2024
dskGameInterface gameDesktop{game, nullptr, 0, false};
21-
Cheats& cheats = gameDesktop.GI_GetCheats();
22-
const GameWorldViewer& viewer = gameDesktop.GetView().GetViewer();
25+
Cheats& cheats;
26+
const GameWorldViewer& viewer;
2327

2428
GamePlayer& getPlayer(unsigned id) { return world.GetPlayer(id); }
2529
GamePlayer& p1 = getPlayer(0);
26-
const MapPoint p1HQPos = p1.GetHQPos();
30+
const MapPoint p1HQPos;
2731
};
2832
} // namespace
2933

0 commit comments

Comments
 (0)