Skip to content

Commit 4704b30

Browse files
author
Roberto De Ioris
committed
fixed set_timer()
1 parent 700b3fb commit 4704b30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/UnrealEnginePython/Private/UEPyTimer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ PyObject *py_ue_set_timer(ue_PyUObject *self, PyObject * args)
127127
return PyErr_Format(PyExc_Exception, "unable to allocate FTimerHandle python object");
128128
}
129129

130+
new(&ret->thandle) FTimerHandle;
131+
130132
FTimerDelegate timer_delegate;
131133
TSharedRef<FPythonSmartDelegate> py_delegate = MakeShareable(new FPythonSmartDelegate);
132134
py_delegate->SetPyCallable(py_callable);

0 commit comments

Comments
 (0)