blueloveTH пре 1 година
родитељ
комит
43ec97a707
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      3rd/lua_bridge/src/lua_bridge.cpp

+ 1 - 1
3rd/lua_bridge/src/lua_bridge.cpp

@@ -204,7 +204,7 @@ struct PyLuaFunction: PyLuaObject{
         vm->bind_notimplemented_constructor<PyLuaFunction>(type);
         vm->_all_types[PK_OBJ_GET(Type, type)].subclass_enabled = false;
 
-        vm->bind_method<-1>(type, "__call__", [](VM* vm, ArgsView args){
+        vm->bind_method<-1>(type, __call__, [](VM* vm, ArgsView args){
             if(args.size() < 1) vm->TypeError("__call__ takes at least 1 argument");
             const PyLuaFunction& self = _CAST(PyLuaFunction&, args[0]);
             int base_size = lua_gettop(_L);