1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-03 15:09:39 +00:00

Fix missing includes

This commit is contained in:
ζeh Matt 2022-06-07 02:08:50 +03:00
parent e185d186bf
commit 38b6927b31
No known key found for this signature in database
GPG key ID: 18CE582C71A225B0
3 changed files with 5 additions and 2 deletions

View file

@ -161,7 +161,8 @@ namespace MWGui
std::string addition; std::string addition;
const int64_t bufSize = sLogCircularBuffer.size(); const int64_t bufSize = sLogCircularBuffer.size();
{ {
std::unique_lock<std::mutex> lock = Log::lock(); // Keep log object to stay keep the lock.
Log log(Debug::Debug);
if (sLogStartIndex < sLogEndIndex) if (sLogStartIndex < sLogEndIndex)
addition = std::string(sLogCircularBuffer.data() + sLogStartIndex, sLogEndIndex - sLogStartIndex); addition = std::string(sLogCircularBuffer.data() + sLogStartIndex, sLogEndIndex - sLogStartIndex);
else else
@ -212,4 +213,4 @@ namespace MWGui
else else
updateBulletProfile(); updateBulletProfile();
} }
} }

View file

@ -2,6 +2,7 @@
#include <cstdlib> #include <cstdlib>
#include <iomanip> #include <iomanip>
#include <chrono>
#include <components/compiler/extensions.hpp> #include <components/compiler/extensions.hpp>
#include <components/compiler/opcodes.hpp> #include <components/compiler/opcodes.hpp>

View file

@ -8,6 +8,7 @@
#include <iostream> #include <iostream>
#include <memory> #include <memory>
#include <sstream> #include <sstream>
#include <thread>
#include <SDL_messagebox.h> #include <SDL_messagebox.h>