Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Jul 21, 2024
1 parent ef201ba commit d3a3c76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CGANode/info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -842,9 +842,9 @@ void GetCardsRecvMsg(const Nan::FunctionCallbackInfo<v8::Value>& info)
obj->Set(context, String::NewFromUtf8(isolate, "name").ToLocalChecked(), Nan::New(myinfo.name).ToLocalChecked());

Local<Array> msgs = Array::New(isolate);
for (size_t i = 0; i < 10; ++i)
for (size_t j = 0; j < 10; ++j)
{
msgs->Set(context, i, Nan::New(myinfo.msgs[i]).ToLocalChecked());
msgs->Set(context, j, Nan::New(myinfo.msgs[j]).ToLocalChecked());
}
obj->Set(context, String::NewFromUtf8(isolate, "msgs").ToLocalChecked(), msgs);

Expand Down

0 comments on commit d3a3c76

Please sign in to comment.