Skip to content

Commit

Permalink
Merge pull request #1354 from GaijinEntertainment/keepalive-take-2
Browse files Browse the repository at this point in the history
so that it compiles without DAS_ENABLE_KEEPALIVE
  • Loading branch information
borisbat authored Nov 5, 2024
2 parents 6a6083c + dc62a8c commit 5a5328d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ast/ast_simulate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<SimNode_KeepAlive *>(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<SimNode_CallBase *>(node);
Expand Down

0 comments on commit 5a5328d

Please sign in to comment.