mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
SList::Init: add missing constructor (#33096)
SList::Init uses an assignment operator that doesn't exist. Because this template class method doesn't get used during default compilation, most compilers don't detect the issue. clang 10 detects the issue and gives an error.
This commit is contained in:
1 parent
15f607b34f
commit
200de97087
1 file changed
+2
-2
@@ -160,13 +160,13 @@ public:
|
||||
void Init()
|
||||
{
|
||||
LIMITED_METHOD_CONTRACT;
|
||||
m_pHead = &m_link;
|
||||
m_pHead = PTR_SLink(&m_link);
|
||||
// NOTE :: fHead variable is template argument
|
||||
// the following code is a compiled in, only if the fHead flag
|
||||
// is set to false,
|
||||
if (!fHead)
|
||||
{
|
||||
m_pTail = &m_link;
|
||||
m_pTail = PTR_SLink(&m_link);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user