diff options
| author | oy <Tom_Adams@web.de> | 2010-10-14 02:06:57 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-10-14 02:06:57 +0200 |
| commit | e294cd86a5f9f96924fd381fd64f5647a6b33c90 (patch) | |
| tree | 6828a6de30f105dd2fd5a9792c264b50a590378d /src | |
| parent | fa768449e28b2ad494eb4d2340886583599805ec (diff) | |
| download | zcatch-e294cd86a5f9f96924fd381fd64f5647a6b33c90.tar.gz zcatch-e294cd86a5f9f96924fd381fd64f5647a6b33c90.zip | |
fixed bug in the console when executing a line that holds more than one command
Diffstat (limited to 'src')
| -rw-r--r-- | src/engine/shared/console.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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; |