mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-04-20 05:25:44 +00:00
fix ENUM_expression_list printing
This commit is contained in:
parent
cdd7b2d656
commit
24762485e0
@ -370,10 +370,15 @@ nlohmann::json print_statement_ast(game::scriptInstance_t inst, game::sval_u val
|
||||
{
|
||||
auto exprlist = val.node[1];
|
||||
auto sourcePos = val.node[2].sourcePosValue;
|
||||
int i;
|
||||
game::sval_u* node;
|
||||
|
||||
// answer["exprlist"] = print_statement_ast(inst, exprlist);
|
||||
|
||||
// auto expr_count = game::GetExpressionCount(exprlist);
|
||||
for (i = 0, node = exprlist.node->node;
|
||||
node;
|
||||
node = node[1].node, i++)
|
||||
{
|
||||
answer["exprlist"][i] = print_statement_ast(inst, *node->node);
|
||||
}
|
||||
|
||||
answer["sourcePos"] = sourcePos;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user