Skip to content

Commit 3824f77

Browse files
committed
Linux compile fix #4
Addendum to 34bea4d
1 parent 44c4cf5 commit 3824f77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Shared/mods/deathmatch/logic/CMapEventManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ bool CMapEventManager::Add(CLuaMain* pLuaMain, const std::string& strName, const
4646
}
4747

4848
// Emplace to the map
49-
m_EventsMap.emplace_hint(iter, strName, new CMapEvent(pLuaMain, strName, iLuaFunction, bPropagated, eventPriority, fPriorityMod));
49+
m_EventsMap.emplace_hint(iter, strName, std::unique_ptr<CMapEvent>(new CMapEvent(pLuaMain, strName, iLuaFunction, bPropagated, eventPriority, fPriorityMod)));
5050
m_bHasEvents = true;
5151
return true;
5252
}

0 commit comments

Comments
 (0)