From a06281f1457584722a201042617bf620c51770d6 Mon Sep 17 00:00:00 2001 From: Patricia Aas Date: Fri, 10 Sep 2021 16:19:24 +0200 Subject: [PATCH] Initialize member --- lib/Ghost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Ghost.cpp b/lib/Ghost.cpp index a532b01..f717cbd 100644 --- a/lib/Ghost.cpp +++ b/lib/Ghost.cpp @@ -151,7 +151,7 @@ void Ghost::updateDirection(const GameState & gameState) { return; struct Move { - Direction direction; + Direction direction = Direction::NONE; Position position; double distance_to_target = std::numeric_limits::infinity(); };