Skip to content

Commit

Permalink
check got missing
Browse files Browse the repository at this point in the history
  • Loading branch information
LordOfDragons committed Sep 13, 2020
1 parent 595bbff commit 0187ce3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scriptengine/parser/dspOptimizeFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ void dspOptimizeFunction::pOptimizeReturn( const dspBaseNode &nodeRetVal ){
PRINT_OPTIMIZED("FOGetClassVarStatic")

}else{
if( nodeMembVar.GetRealObject()->GetNodeType() != eNodeTypes::ntThis ){
return;
}

pCheckFunction.GetFunction()->SetOptimized(
new dsFOGetClassVar( *nodeMembVar.GetClassVariable() ) );
PRINT_OPTIMIZED("FOGetClassVar")
Expand Down

0 comments on commit 0187ce3

Please sign in to comment.