Skip to content

Commit

Permalink
Update cellVoice.cpp
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JohnHolmesII authored and Nekotekina committed Oct 24, 2019
1 parent 9253f7d commit 0842724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcs3/Emu/Cell/Modules/cellVoice.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 0842724

Please sign in to comment.