diff options
Diffstat (limited to 'src/astfunction.cpp')
-rw-r--r-- | src/astfunction.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/astfunction.cpp b/src/astfunction.cpp index f091644..f5e25dc 100644 --- a/src/astfunction.cpp +++ b/src/astfunction.cpp | |||
@@ -1,6 +1,8 @@ | |||
1 | #include "astfunction.h" | 1 | #include "astfunction.h" |
2 | #include "astbranch.h" | 2 | #include "astbranch.h" |
3 | 3 | ||
4 | #include "gamestate.h" | ||
5 | |||
4 | AstFunction::AstFunction( const Bu::String &sName ) : | 6 | AstFunction::AstFunction( const Bu::String &sName ) : |
5 | sName( sName ), | 7 | sName( sName ), |
6 | pAst( NULL ) | 8 | pAst( NULL ) |
@@ -14,6 +16,7 @@ AstFunction::~AstFunction() | |||
14 | 16 | ||
15 | Variable AstFunction::call( class GameState &gState ) | 17 | Variable AstFunction::call( class GameState &gState ) |
16 | { | 18 | { |
19 | gState.parse( pAst ); | ||
17 | } | 20 | } |
18 | 21 | ||
19 | void AstFunction::addParam( const Bu::String &sName ) | 22 | void AstFunction::addParam( const Bu::String &sName ) |