about summary refs log tree commit diff
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-10-14 02:06:57 +0200
committeroy <Tom_Adams@web.de>2010-10-14 02:06:57 +0200
commite294cd86a5f9f96924fd381fd64f5647a6b33c90 (patch)
tree6828a6de30f105dd2fd5a9792c264b50a590378d
parentfa768449e28b2ad494eb4d2340886583599805ec (diff)
downloadzcatch-e294cd86a5f9f96924fd381fd64f5647a6b33c90.tar.gz
zcatch-e294cd86a5f9f96924fd381fd64f5647a6b33c90.zip
fixed bug in the console when executing a line that holds more than one command
-rw-r--r--src/engine/shared/console.cpp5
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;