Skip to content

Commit

Permalink
Fixed GCC error in ivscript.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Blixibon committed Oct 16, 2022
1 parent 2ca2d7c commit 8cf06b2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions sp/src/public/vscript/ivscript.h
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,10 @@ typedef CScriptScopeT<> CScriptScope;
#define FOR_EACH_VEC_PTR( vecName, iteratorName ) \
for ( int iteratorName = 0; iteratorName < (vecName)->Count(); iteratorName++ )

//-----------------------------------------------------------------------------

static void __UpdateScriptHooks( HSCRIPT hooksList );

//-----------------------------------------------------------------------------
//
// Keeps track of which events and scopes are hooked without polling this from the script VM on each request.
Expand Down Expand Up @@ -1654,12 +1658,6 @@ class CScriptHookManager
return scopeMap->Find( g_pScriptVM->HScriptToRaw( hScope ) ) != scopeMap->InvalidIndex();
}

static void __UpdateScriptHooks( HSCRIPT hooksList )
{
extern CScriptHookManager &GetScriptHookManager();
GetScriptHookManager().Update( hooksList );
}

//
// On VM init, registers script func and caches the hook func.
//
Expand Down Expand Up @@ -1876,6 +1874,11 @@ inline CScriptHookManager &GetScriptHookManager()
return g_ScriptHookManager;
}

static void __UpdateScriptHooks( HSCRIPT hooksList )
{
GetScriptHookManager().Update( hooksList );
}


//-----------------------------------------------------------------------------
// Function bindings allow script functions to run C++ functions.
Expand Down

0 comments on commit 8cf06b2

Please sign in to comment.