diff --git a/src/ast/ast_simulate.cpp b/src/ast/ast_simulate.cpp index 87677f068..196f83f56 100644 --- a/src/ast/ast_simulate.cpp +++ b/src/ast/ast_simulate.cpp @@ -115,10 +115,12 @@ namespace das // common for move and copy SimNode_CallBase * getCallBase ( SimNode * node ) { +#if DAS_ENABLE_KEEPALIVE if ( node->rtti_node_isKeepAlive() ) { SimNode_KeepAlive * ka = static_cast(node); node = ka->value; } +#endif DAS_ASSERTF(node->rtti_node_isCallBase(),"we are calling getCallBase on a node, which is not a call base node." "we should not be here, script compiler should have caught this during compilation."); return static_cast(node);