mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
fixes
This commit is contained in:
parent
5b82b18c6f
commit
7415726e47
3 changed files with 4 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ public:
|
|||
observers.emplace(id, callback);
|
||||
return std::shared_ptr<int>(new int(id), [this](int* id) {
|
||||
observers.erase(*id);
|
||||
delete id;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue