Fix an assert that should be a run-time test.

pull/581/head
Kevin 10 months ago
parent 07cdafc1f2
commit 7d18461d09
  1. 5
      src/performanceconfig.cpp

@ -1,3 +1,4 @@
//
// performanceconfig.cpp
//
@ -1315,7 +1316,9 @@ std::string CPerformanceConfig::AddPerformanceBankDirName(unsigned nBankID)
bool CPerformanceConfig::IsValidPerformanceBank(unsigned nBankID)
{
assert (nBankID < NUM_PERFORMANCE_BANKS);
if (nBankID >= NUM_PERFORMANCE_BANKS) {
return false;
}
if (m_PerformanceBankName[nBankID].empty())
{
return false;

Loading…
Cancel
Save