Pacify MSVCC

This commit is contained in:
Christian Speckner 2018-07-30 23:47:39 +02:00
parent 8c6bb5cd93
commit 2f4e0f51fc
1 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,10 @@ void FpsMeter::render(uInt32 frameCount)
}
uInt32 queueSize = myQueue.capacity();
entry first, last = (entry){.frames = frameCount, .timestamp = high_resolution_clock::now()};
entry first, last;
last.frames = frameCount;
last.timestamp = high_resolution_clock::now();
if (myQueue.size() < queueSize) {
myQueue.push_back(last);