From bfef4d4023716eff9c47fc67e0c55c178ae3dfaf Mon Sep 17 00:00:00 2001 From: James Turk Date: Sat, 18 Jan 2003 21:53:14 +0000 Subject: [PATCH] updated error clearing --- src/ZE_ZEngine.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ZE_ZEngine.cpp b/src/ZE_ZEngine.cpp index 60f427d..ab1087a 100644 --- a/src/ZE_ZEngine.cpp +++ b/src/ZE_ZEngine.cpp @@ -13,7 +13,7 @@ File: ZE_ZEngine.cpp
Description: Implementation source file for ZEngine library main singleton class.
Author(s): James Turk
-$Id: ZE_ZEngine.cpp,v 1.15 2003/01/13 06:31:09 cozman Exp $
+$Id: ZE_ZEngine.cpp,v 1.16 2003/01/18 21:53:14 cozman Exp $
\file ZE_ZEngine.cpp \brief Central source file for ZEngine. @@ -524,7 +524,9 @@ void ZEngine::ReportError(ZErrorCode code, string desc, string file, unsigned in ZErrorCode ZEngine::GetLastError() { - return mCurError.Code(); + ZErrorCode code = mCurError.Code(); + mCurError.Create(ZERR_NONE); + return code; } void ZEngine::WriteLog(string str) @@ -539,6 +541,7 @@ void ZEngine::LogError(ZError error) void ZEngine::FlushErrors() { + mCurError.Create(ZERR_NONE); while(!mErrorQueue.empty()) { LogError(mErrorQueue.front());