1
0
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:
Sandu Liviu Catalin 2016-02-27 14:00:02 +02:00
parent a867bfd84d
commit 8340a5dbc4
2 changed files with 7 additions and 1 deletions

View File

@ -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());
}
// ------------------------------------------------------------------------------------------------

View File

@ -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: