Commit 43f3d963 authored by Leander Schulten's avatar Leander Schulten
Browse files

Fix Bug where the current Bar/Tatum/... of the spotifyState get not properly...

Fix Bug where the current Bar/Tatum/... of the spotifyState get not properly updated (Controller.cpp)
parent 3fbda441
......@@ -59,7 +59,7 @@ void Controller::updateSpotifyState(){
lastIndexOfCurrent ## Type = newIndex; \
spotifyState.current ## Type .~ Object(); \
if(newIndex>=0){ \
new (&spotifyState.current ## Type) Object(spotify->getCurrentAudioAnalysis()->type ## s[5]); \
new (&spotifyState.current ## Type) Object(spotify->getCurrentAudioAnalysis()->type ## s[static_cast<unsigned>(newIndex)]); \
spotifyState.new ## Type = true; \
} else {\
new (&spotifyState.current ## Type) Object(); \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment