mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Also fixed the Sqrat issue on constructors for irc sessions.
This commit is contained in:
parent
a867bfd84d
commit
8340a5dbc4
@ -284,6 +284,12 @@ Session::Session()
|
||||
s_Sessions.push_back(this);
|
||||
}
|
||||
}
|
||||
// Because Sqrat is majorly stupid and clears the error message
|
||||
// then does an assert on debug builds thinking the type wasn't registered
|
||||
// or throws a generic "unknown error" message on release builds
|
||||
// we have to use this approach
|
||||
if (Sqrat::Error::Occurred(_SqVM))
|
||||
_SqMod->LogErr("%s", Sqrat::Error::Message(_SqVM).c_str());
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
@ -39,7 +39,7 @@ private:
|
||||
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
DocumentRef m_Doc; /* The main xml document instance. */
|
||||
Type m_Node; /* The managed document node. */
|
||||
Type m_Node; /* The managed document node. */
|
||||
|
||||
public:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user