diff options
| author | Ray <[email protected]> | 2022-02-25 20:41:18 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-02-25 20:41:18 +0100 |
| commit | ead8003044aab21f8d155b91ec0bce90cd193500 (patch) | |
| tree | a0e800ff452f4cc25646188bfee4f5310a8c166f /src | |
| parent | 296b57e1f55f27b5d1f71a5cc8d623a2fbbde20b (diff) | |
| download | raylib-ead8003044aab21f8d155b91ec0bce90cd193500.tar.gz raylib-ead8003044aab21f8d155b91ec0bce90cd193500.zip | |
Possible fix for #2360
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rcore.c b/src/rcore.c index 58c8c4ce..51fb307e 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 |
