From ead8003044aab21f8d155b91ec0bce90cd193500 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 25 Feb 2022 20:41:18 +0100 Subject: [PATCH] Possible fix for #2360 --- src/rcore.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rcore.c b/src/rcore.c index 58c8c4ceb..51fb307ea 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -752,6 +752,8 @@ void InitWindow(int width, int height, const char *title) TRACELOG(LOG_INFO, " > raudio:.... not loaded (optional)"); #endif + memset(&CORE, 0, sizeof(CoreData)); // Clean CORE object memory + if ((title != NULL) && (title[0] != 0)) CORE.Window.title = title; // Initialize required global values different than 0