summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-19 22:47:42 +0100
committerbunnei <bunneidev@gmail.com>2014-12-19 22:47:42 +0100
commiteb394ac0af110a2c1b10901171f4f5303881b147 (patch)
treea20133305446928b38520a38b3c50a9ccff4296d
parentMerge pull request #294 from lioncash/var (diff)
parentProperly erase/remove an observer (diff)
downloadyuzu-eb394ac0af110a2c1b10901171f4f5303881b147.tar
yuzu-eb394ac0af110a2c1b10901171f4f5303881b147.tar.gz
yuzu-eb394ac0af110a2c1b10901171f4f5303881b147.tar.bz2
yuzu-eb394ac0af110a2c1b10901171f4f5303881b147.tar.lz
yuzu-eb394ac0af110a2c1b10901171f4f5303881b147.tar.xz
yuzu-eb394ac0af110a2c1b10901171f4f5303881b147.tar.zst
yuzu-eb394ac0af110a2c1b10901171f4f5303881b147.zip
-rw-r--r--src/video_core/gpu_debugger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h
index 16b1656bb..4eb8b3d4d 100644
--- a/src/video_core/gpu_debugger.h
+++ b/src/video_core/gpu_debugger.h
@@ -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;
}