We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f6850 commit aa6c19eCopy full SHA for aa6c19e
debugger/attach/windows/src/Debugger/DebugFrontend.cpp
@@ -770,10 +770,8 @@ DebugFrontend::Script* DebugFrontend::GetScript(unsigned int scriptIndex)
770
{
771
return nullptr;
772
}
773
- else
774
- {
775
- return m_scripts[scriptIndex];
776
- }
+ assert(m_scripts.size() > scriptIndex, "Out of scripts range!");
+ return m_scripts[scriptIndex];
777
778
779
unsigned int DebugFrontend::GetScriptIndex(const char* name) const
debugger/attach/windows/src/LuaInject/DebugBackend.cpp
728 Bytes
0 commit comments