Skip to content

Commit aa6c19e

Browse files
committed
assert
1 parent a9f6850 commit aa6c19e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

debugger/attach/windows/src/Debugger/DebugFrontend.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,10 +770,8 @@ DebugFrontend::Script* DebugFrontend::GetScript(unsigned int scriptIndex)
770770
{
771771
return nullptr;
772772
}
773-
else
774-
{
775-
return m_scripts[scriptIndex];
776-
}
773+
assert(m_scripts.size() > scriptIndex, "Out of scripts range!");
774+
return m_scripts[scriptIndex];
777775
}
778776

779777
unsigned int DebugFrontend::GetScriptIndex(const char* name) const
728 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)