From e294cd86a5f9f96924fd381fd64f5647a6b33c90 Mon Sep 17 00:00:00 2001 From: oy Date: Thu, 14 Oct 2010 02:06:57 +0200 Subject: fixed bug in the console when executing a line that holds more than one command --- src/engine/shared/console.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index e32a0f81..ff9b0cd8 100644 --- a/src/engine/shared/console.cpp +++ b/src/engine/shared/console.cpp @@ -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; -- cgit 1.4.1