Skip to content

Commit

Permalink
fixed a bug, that made compiling on gcc impossible
Browse files Browse the repository at this point in the history
std::atomic<float> m_fGlobalTime = 0.0f; => std::atomic<float> m_fGlobalTime = {0.0f};
thx J. Random Programmer
  • Loading branch information
gorbit99 authored Jan 10, 2019
1 parent f0de5fa commit 4800e2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion olcConsoleGameEngineSDL.h
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,8 @@ class olcConsoleGameEngine
SDL_AudioDeviceID deviceID;
SDL_AudioSpec spec, sampleSpec;

std::atomic<float> m_fGlobalTime = 0.0f;
//thx J. Random Programmer
std::atomic<float> m_fGlobalTime = {0.0f};
};

std::atomic<bool> olcConsoleGameEngine::m_bAtomActive(false);
Expand Down

0 comments on commit 4800e2f

Please sign in to comment.