fix a bug

This commit is contained in:
blueloveTH 2023-08-06 18:37:29 +08:00
parent ddba3678d1
commit 719cc79792

View File

@ -108,7 +108,7 @@ void PyBody::_register(VM* vm, PyObject* mod, PyObject* type){
// get_node
vm->bind(type, "get_node(self)", [](VM* vm, ArgsView args){
PyBody& body = CAST(PyBody&, args[1]);
PyBody& body = CAST(PyBody&, args[0]);
return body.node_like;
});