about summary refs log tree commit diff
path: root/src/engine/shared/console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/shared/console.cpp')
-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;