mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-14 05:55:13 +01:00
Merge pull request #309 from chinhodado/patch-1
Properly erase/remove a DebuggerObserver
This commit is contained in:
commit
eb394ac0af
@ -85,7 +85,7 @@ public:
|
|||||||
|
|
||||||
void UnregisterObserver(DebuggerObserver* observer)
|
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;
|
observer->observed = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user