summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--FoundationEx/Utils.cpp5
-rw-r--r--Stars45/Game.cpp1
2 files changed, 1 insertions, 5 deletions
diff --git a/FoundationEx/Utils.cpp b/FoundationEx/Utils.cpp
index 8a9f157..b030678 100644
--- a/FoundationEx/Utils.cpp
+++ b/FoundationEx/Utils.cpp
@@ -20,7 +20,7 @@ void AssignErrLog(FILE * out)
int CloseErrLog()
{
if (ErrLog)
- return fclose(Errlog);
+ return fclose(ErrLog);
return 0;
}
@@ -34,6 +34,3 @@ void Print(const char* fmt, ...)
fflush(ErrLog);
va_end(args);
}
-
-
-#endif // Utils_h
diff --git a/Stars45/Game.cpp b/Stars45/Game.cpp
index 65c0e3f..e7fcf7f 100644
--- a/Stars45/Game.cpp
+++ b/Stars45/Game.cpp
@@ -65,7 +65,6 @@ Game::Game()
if (!game) {
panicbuf[0] = 0;
game = this;
- ZeroMemory(ErrBuf, 1024);
video_settings = new(__FILE__,__LINE__) VideoSettings;