HLE: fix unreachable code warning
This commit is contained in:
1 parent
f730b775b6
commit
90f863a7a3
1 file changed
+3
-1
@@ -247,8 +247,10 @@ u32 UnPatch(const std::string& patch_name)
|
||||
return addr;
|
||||
}
|
||||
|
||||
for (const auto& symbol : g_symbolDB.GetSymbolsFromName(patch_name))
|
||||
const auto& symbols = g_symbolDB.GetSymbolsFromName(patch_name);
|
||||
if (symbols.size())
|
||||
{
|
||||
const auto& symbol = symbols[0];
|
||||
for (u32 addr = symbol->address; addr < symbol->address + symbol->size; addr += 4)
|
||||
{
|
||||
s_original_instructions.erase(addr);
|
||||
|
||||
Reference in new issue
Block a user