diff --git a/GUI/host/host.cc b/GUI/host/host.cc index 3056fcf..80410a3 100644 --- a/GUI/host/host.cc +++ b/GUI/host/host.cc @@ -35,7 +35,7 @@ namespace LOCK(hostMutex); TextThread *it; if ((it = textThreadsByParams[tp]) == nullptr) - if (TextThread::ThreadCounter < MAX_THREAD_COUNT) + if (textThreadsByParams.size() < MAX_THREAD_COUNT) OnCreate(it = textThreadsByParams[tp] = new TextThread(tp, Host::GetHookParam(tp).type)); else return Host::AddConsoleOutput(L"too many text threads: stopping"); it->AddText(text, len);