mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 06:59:07 +01:00
Merge pull request #6762 from lioncash/condition
DolphinQt/MemoryWidget: Fix dead condition in FindValue()
This commit is contained in:
commit
27f6274fc5
@ -507,7 +507,10 @@ void MemoryWidget::FindValue(bool next)
|
|||||||
std::vector<u8> search_for = GetValueData();
|
std::vector<u8> search_for = GetValueData();
|
||||||
|
|
||||||
if (search_for.empty())
|
if (search_for.empty())
|
||||||
|
{
|
||||||
|
m_result_label->setText(tr("No Value Given"));
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const u8* ram_ptr = nullptr;
|
const u8* ram_ptr = nullptr;
|
||||||
std::size_t ram_size = 0;
|
std::size_t ram_size = 0;
|
||||||
@ -531,12 +534,6 @@ void MemoryWidget::FindValue(bool next)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (search_for.empty())
|
|
||||||
{
|
|
||||||
m_result_label->setText(tr("No Value Given"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
u32 addr = 0;
|
u32 addr = 0;
|
||||||
|
|
||||||
if (!m_search_address->text().isEmpty())
|
if (!m_search_address->text().isEmpty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user