mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-04-19 21:22:54 +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 exprlist = val.node[1];
|
||||||
auto sourcePos = val.node[2].sourcePosValue;
|
auto sourcePos = val.node[2].sourcePosValue;
|
||||||
|
int i;
|
||||||
|
game::sval_u* node;
|
||||||
|
|
||||||
// answer["exprlist"] = print_statement_ast(inst, exprlist);
|
for (i = 0, node = exprlist.node->node;
|
||||||
|
node;
|
||||||
// auto expr_count = game::GetExpressionCount(exprlist);
|
node = node[1].node, i++)
|
||||||
|
{
|
||||||
|
answer["exprlist"][i] = print_statement_ast(inst, *node->node);
|
||||||
|
}
|
||||||
|
|
||||||
answer["sourcePos"] = sourcePos;
|
answer["sourcePos"] = sourcePos;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user