mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-26 05:37:58 +03:00
Tidy up CSimpleCallChainer::PostScriptExecute()
This commit is contained in:
parent
a6f9d0a0e2
commit
f1123ed1e7
@ -118,15 +118,14 @@ class CSimpleCallChainer
|
||||
|
||||
function PostScriptExecute()
|
||||
{
|
||||
local func;
|
||||
try {
|
||||
func = scope[prefix];
|
||||
} catch(e) {
|
||||
return;
|
||||
if ( prefix in scope )
|
||||
{
|
||||
local func = scope[prefix];
|
||||
if ( typeof func == "function" )
|
||||
{
|
||||
chain.push(func);
|
||||
}
|
||||
}
|
||||
if (typeof(func) != "function")
|
||||
return;
|
||||
chain.push(func);
|
||||
}
|
||||
|
||||
function Call()
|
||||
|
Loading…
x
Reference in New Issue
Block a user