From 4800e2fe4f72880d1b0cde716f9fc8730fe54e62 Mon Sep 17 00:00:00 2001 From: gorbit99 Date: Thu, 10 Jan 2019 22:33:28 +0100 Subject: [PATCH] fixed a bug, that made compiling on gcc impossible std::atomic m_fGlobalTime = 0.0f; => std::atomic m_fGlobalTime = {0.0f}; thx J. Random Programmer --- olcConsoleGameEngineSDL.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/olcConsoleGameEngineSDL.h b/olcConsoleGameEngineSDL.h index 20541d8..0eccdc6 100644 --- a/olcConsoleGameEngineSDL.h +++ b/olcConsoleGameEngineSDL.h @@ -1498,7 +1498,8 @@ protected: // Audio Engine ===================================================== SDL_AudioDeviceID deviceID; SDL_AudioSpec spec, sampleSpec; - std::atomic m_fGlobalTime = 0.0f; + //thx J. Random Programmer + std::atomic m_fGlobalTime = {0.0f}; }; std::atomic olcConsoleGameEngine::m_bAtomActive(false);