fixed bug in the console when executing a line that holds more than one command

This commit is contained in:
oy 2010-10-14 02:06:57 +02:00
parent fa768449e2
commit e294cd86a5

View file

@ -169,11 +169,10 @@ void CConsole::Print(int Level, const char *pFrom, const char *pStr)
}
void CConsole::ExecuteLineStroked(int Stroke, const char *pStr)
{
CResult *pResult = new(&m_ExecutionQueue.m_pLast->m_Result) CResult;
{
while(pStr && *pStr)
{
CResult *pResult = new(&m_ExecutionQueue.m_pLast->m_Result) CResult;
const char *pEnd = pStr;
const char *pNextPart = 0;
int InString = 0;