From 83cccbed07ebf6bc3ea0c7df6bce4a2e7bbb27c3 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 20 Feb 2021 14:31:04 -0800 Subject: [PATCH] Remove contents memset from editorclass constructor It gets (re-) initialized in editorclass::reset() anyway, so I'm just removing this for code clarity. --- desktop_version/src/CustomLevels.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/desktop_version/src/CustomLevels.cpp b/desktop_version/src/CustomLevels.cpp index 1a14695a..3a16a63a 100644 --- a/desktop_version/src/CustomLevels.cpp +++ b/desktop_version/src/CustomLevels.cpp @@ -54,9 +54,6 @@ edlevelclass::edlevelclass(void) editorclass::editorclass(void) { - //We create a blank map - SDL_memset(contents, 0, sizeof(contents)); - for (size_t i = 0; i < SDL_arraysize(vmult); i++) { vmult[i] = i * 40 * maxwidth;