diff options
Diffstat (limited to 'cRender.cpp')
-rw-r--r-- | cRender.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cRender.cpp b/cRender.cpp index 6d7a70a..d4f4185 100644 --- a/cRender.cpp +++ b/cRender.cpp @@ -47,6 +47,9 @@ cRender::cRender() {} cRender::~cRender() { //Free allocated memory + if(bBlockRender) + return; + for (int i = 0; i < sizeX; i++) { free(cScreen[i]); free(wColor[i]); @@ -58,7 +61,7 @@ cRender::~cRender() free(bChanged); setConsoleEcho(true); - + #ifdef __linux__ setConsoleCursor(true); #endif |