mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 13:18:24 +00:00
Properly erase/remove an observer
This commit is contained in:
parent
765dbabdb6
commit
d31c23e958
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ public:
|
|||
|
||||
void UnregisterObserver(DebuggerObserver* observer)
|
||||
{
|
||||
std::remove(observers.begin(), observers.end(), observer);
|
||||
observers.erase(std::remove(observers.begin(), observers.end(), observer), observers.end());
|
||||
observer->observed = nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue