mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Callbacks: Fix delete when multiple for a thread.
Oops, this was deleting all after the deleted one.
This commit is contained in:
1 parent
0d6ad3df2f
commit
04576189b4
1 file changed
+1
-1
@@ -2716,7 +2716,7 @@ int sceKernelDeleteCallback(SceUID cbId)
|
||||
{
|
||||
Thread *thread = kernelObjects.Get<Thread>(cb->nc.threadId, error);
|
||||
if (thread)
|
||||
thread->callbacks.erase(std::find(thread->callbacks.begin(), thread->callbacks.end(), cbId), thread->callbacks.end());
|
||||
thread->callbacks.erase(std::remove(thread->callbacks.begin(), thread->callbacks.end(), cbId), thread->callbacks.end());
|
||||
if (cb->nc.notifyCount != 0)
|
||||
readyCallbacksCount--;
|
||||
|
||||
|
||||
Reference in new issue
Block a user