Skip to content
Snippets Groups Projects
Commit a39323a4 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

not only promise to detach observer - DO IT

parent ac6e597b
Branches
Tags
No related merge requests found
......@@ -774,6 +774,10 @@ void EntityImpl::AttachObserver(const EntityObserverPtr& o)
void EntityImpl::DetachObserver(const EntityObserverPtr& o)
{
EntityObserverMap::iterator it=observer_map_.find(o.get());
if(it != observer_map_.end()) {
observer_map_.erase(it);
}
}
void EntityImpl::NotifyObserver()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment