Core/Misc: Fix FreezeDetector triggered on startup

Fix FreezeDetector triggering the assert on startup if scripts took more than a few seconds to initialize.
This commit is contained in:
Aokromes
2018-05-12 19:28:32 +02:00
parent 2e3fef6452
commit 5f45307a78

View File

@@ -91,7 +91,7 @@ class FreezeDetector
{
public:
FreezeDetector(Trinity::Asio::IoContext& ioContext, uint32 maxCoreStuckTime)
: _timer(ioContext), _worldLoopCounter(0), _lastChangeMsTime(0), _maxCoreStuckTimeInMs(maxCoreStuckTime) { }
: _timer(ioContext), _worldLoopCounter(0), _lastChangeMsTime(getMSTime()), _maxCoreStuckTimeInMs(maxCoreStuckTime) { }
static void Start(std::shared_ptr<FreezeDetector> const& freezeDetector)
{