mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Callbacks: Fix delete when multiple for a thread.
Oops, this was deleting all after the deleted one.
This commit is contained in:
parent
0d6ad3df2f
commit
04576189b4
@ -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--;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user