core/smn_functions.cpp
changeset 1082 bb923439d570
parent 653 ef60870067ff
child 1231 17badaf66ce4
     1.1 --- a/core/smn_functions.cpp	Mon Jul 09 04:41:19 2007 +0000
     1.2 +++ b/core/smn_functions.cpp	Mon Jul 09 06:03:04 2007 +0000
     1.3 @@ -75,6 +75,7 @@
     1.4  {
     1.5  	s_CallStarted = false;
     1.6  	s_pFunction = NULL;
     1.7 +	s_pForward = NULL;
     1.8  	s_pCallable = NULL;
     1.9  }
    1.10  
    1.11 @@ -542,14 +543,14 @@
    1.12  	if (s_pFunction)
    1.13  	{
    1.14  		IPluginFunction *pFunction = s_pFunction;
    1.15 +		ResetCall();
    1.16  		err = pFunction->Execute(result);
    1.17  	} else if (s_pForward) {
    1.18  		IForward *pForward = s_pForward;
    1.19 +		ResetCall();
    1.20  		err = pForward->Execute(result, NULL);
    1.21  	}
    1.22  
    1.23 -	ResetCall();
    1.24 -
    1.25  	return err;
    1.26  }
    1.27