mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 20:14:57 +00:00
DolphinQt/MemoryWidget: Fix dead condition in FindValue()
This condition is already checked earlier in the function and exits out if it's satisfied, meaning it'll never reach this check further down.
This commit is contained in:
parent
58b96eeb9d
commit
31389bab0a
1 changed files with 3 additions and 6 deletions
|
@ -507,7 +507,10 @@ void MemoryWidget::FindValue(bool next)
|
|||
std::vector<u8> search_for = GetValueData();
|
||||
|
||||
if (search_for.empty())
|
||||
{
|
||||
m_result_label->setText(tr("No Value Given"));
|
||||
return;
|
||||
}
|
||||
|
||||
const u8* ram_ptr = nullptr;
|
||||
std::size_t ram_size = 0;
|
||||
|
@ -531,12 +534,6 @@ void MemoryWidget::FindValue(bool next)
|
|||
return;
|
||||
}
|
||||
|
||||
if (search_for.empty())
|
||||
{
|
||||
m_result_label->setText(tr("No Value Given"));
|
||||
return;
|
||||
}
|
||||
|
||||
u32 addr = 0;
|
||||
|
||||
if (!m_search_address->text().isEmpty())
|
||||
|
|
Loading…
Add table
Reference in a new issue