From b3798ef2df27ff8914e7d4c8d224a2e0a7f0e34a Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Thu, 12 Aug 2021 10:18:51 +0200 Subject: [PATCH] Remove a nodiscard --- lib/Ghost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Ghost.cpp b/lib/Ghost.cpp index 31fb4a6..4485435 100644 --- a/lib/Ghost.cpp +++ b/lib/Ghost.cpp @@ -41,7 +41,7 @@ void Ghost::reset() { timeChase = {}; } -[[nodiscard]] GridPosition Ghost::currentSprite() const { + GridPosition Ghost::currentSprite() const { switch (state) { default: return Atlas::ghostSprite(spriteSet, direction, (animationIndex % 2) == 0);