mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 15:25:54 -04:00
event: Fix crash when creating task from closure with extra data
This commit is contained in:
parent
54e2ddfd1c
commit
ae7084504b
@ -52,6 +52,8 @@ add(const std::string &name, Callable callable) {
|
||||
public:
|
||||
InlineTask(Callable callable) : _callable(std::move(callable)) {}
|
||||
|
||||
ALLOC_DELETED_CHAIN(InlineTask);
|
||||
|
||||
private:
|
||||
virtual DoneStatus do_task() override final {
|
||||
return _callable(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user