From 0842724f9433117a08053b0709d04154bc99a66e Mon Sep 17 00:00:00 2001 From: JohnHolmesII Date: Wed, 23 Oct 2019 23:15:47 +0000 Subject: [PATCH] Update cellVoice.cpp Caused warnings. Not sure what the actual intention was, this may need to be inverted. This commit assumes that erase() returning 0 is a sign that deletion failed, or that there was corruption. There should be a port there. --- rpcs3/Emu/Cell/Modules/cellVoice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellVoice.cpp b/rpcs3/Emu/Cell/Modules/cellVoice.cpp index 002cf4c44c..bf21cffa6f 100644 --- a/rpcs3/Emu/Cell/Modules/cellVoice.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVoice.cpp @@ -194,7 +194,7 @@ error_code cellVoiceDeletePort(u32 portId) if (!manager->is_init) return CELL_VOICE_ERROR_LIBVOICE_NOT_INIT; - if (!manager->ports.erase((u16)portId) == 0) + if (manager->ports.erase((u16)portId) == 0) return CELL_VOICE_ERROR_TOPOLOGY; return CELL_OK;