Skip to content

Commit c77123f

Browse files
committed
Fix for bind_event.
1 parent d1ae7ab commit c77123f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Source/UnrealEnginePython/Private/UEPyModule.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4468,7 +4468,8 @@ PyObject* ue_bind_pyevent(ue_PyUObject* u_obj, FString event_name, PyObject* py_
44684468
#if ENGINE_MINOR_VERSION < 23
44694469
FMulticastScriptDelegate multiscript_delegate = casted_prop->GetPropertyValue_InContainer(u_obj->ue_object);
44704470
#else
4471-
FMulticastScriptDelegate multiscript_delegate = *casted_prop->GetMulticastDelegate(u_obj->ue_object);
4471+
//FMulticastScriptDelegate multiscript_delegate = *casted_prop->GetMulticastDelegate(u_obj->ue_object);
4472+
FMulticastScriptDelegate multiscript_delegate = *casted_prop->GetMulticastDelegate(casted_prop->ContainerPtrToValuePtr<void>(u_obj->ue_object));
44724473
#endif
44734474

44744475
FScriptDelegate script_delegate;
@@ -4488,7 +4489,8 @@ PyObject* ue_bind_pyevent(ue_PyUObject* u_obj, FString event_name, PyObject* py_
44884489
#if ENGINE_MINOR_VERSION < 23
44894490
casted_prop->SetPropertyValue_InContainer(u_obj->ue_object, multiscript_delegate);
44904491
#else
4491-
casted_prop->SetMulticastDelegate(u_obj->ue_object, multiscript_delegate);
4492+
//casted_prop->SetMulticastDelegate(u_obj->ue_object, multiscript_delegate);
4493+
casted_prop->SetMulticastDelegate(casted_prop->ContainerPtrToValuePtr<void>(u_obj->ue_object), multiscript_delegate);
44924494
#endif
44934495
}
44944496
#if ENGINE_MINOR_VERSION >= 25

0 commit comments

Comments
 (0)