2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #309 from chinhodado/patch-1

Properly erase/remove a DebuggerObserver
This commit is contained in:
bunnei 2014-12-19 16:47:42 -05:00
commit eb394ac0af

View file

@ -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;
} }