core/smn_handles.cpp
changeset 536 164f7d3482ef
parent 370 d3a484f98f6d
child 539 fa7e8a232a18
     1.1 --- a/core/smn_handles.cpp	Mon Feb 26 08:21:09 2007 +0000
     1.2 +++ b/core/smn_handles.cpp	Mon Feb 26 08:32:20 2007 +0000
     1.3 @@ -82,6 +82,13 @@
     1.4  	}
     1.5  }
     1.6  
     1.7 +static cell_t sm_GetMyHandle(IPluginContext *pContext, const cell_t *params)
     1.8 +{
     1.9 +	CPlugin *pPlugin = g_PluginSys.GetPluginByCtx(pContext->GetContext());
    1.10 +
    1.11 +	return pPlugin->GetMyHandle();
    1.12 +}
    1.13 +
    1.14  REGISTER_NATIVES(handles)
    1.15  {
    1.16  	{"IsValidHandle",			sm_IsValidHandle},