fix
This commit is contained in:
parent
c0400d31c3
commit
3d11c7c3ae
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ namespace Crafter {
|
|||
}
|
||||
}
|
||||
#else
|
||||
auto listenersCopy = this->listeners;
|
||||
this->listeners.erase(std::remove(this->listeners.begin(), this->listeners.end(), nullptr), this->listeners.end());
|
||||
for (const auto& listenerSlice : listenersCopy) {
|
||||
for (const auto& listener : listenerSlice.second) {
|
||||
listener->function(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue