Fix undefined gpGlobals
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
* @brief Implement extension code here.
|
||||
*/
|
||||
|
||||
CGlobalVars *gpGlobals = NULL;
|
||||
|
||||
Outputinfo g_Outputinfo; /**< Global singleton for extension's main interface */
|
||||
|
||||
SMEXT_LINK(&g_Outputinfo);
|
||||
@@ -310,3 +312,9 @@ void Outputinfo::SDK_OnAllLoaded()
|
||||
{
|
||||
sharesys->AddNatives(myself, MyNatives);
|
||||
}
|
||||
|
||||
bool Outputinfo::SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlength, bool late)
|
||||
{
|
||||
gpGlobals = ismm->GetCGlobals();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user