diff --git a/Library/Rainmeter.cpp b/Library/Rainmeter.cpp index 7a274b6f..f95234aa 100644 --- a/Library/Rainmeter.cpp +++ b/Library/Rainmeter.cpp @@ -1339,7 +1339,7 @@ void CRainmeter::CreateMeterWindow(const std::wstring& folderPath, const std::ws if (mw) { - m_MeterWindows.insert(std::make_pair(folderPath, mw)); + m_MeterWindows[folderPath] = mw; try {