From fa05feceb8ab7231d45b1176c4f40c84e6da6ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hatvani=20Tam=C3=A1s?= Date: Thu, 16 Apr 2026 15:34:09 +0200 Subject: [PATCH] fixed: uninitalized m_Flags in window made the application window not appear --- SakuraCore/src/Window.cpp | 2 +- SakuraCore/src/Window.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SakuraCore/src/Window.cpp b/SakuraCore/src/Window.cpp index 1304668..2fed83b 100644 --- a/SakuraCore/src/Window.cpp +++ b/SakuraCore/src/Window.cpp @@ -8,7 +8,7 @@ #include namespace SakuraVNE { -Window::Window(const WindowData &data) : m_Data(data) {} +Window::Window(const WindowData &data) : m_Data(data), m_Flags(0) {} Window::~Window() { Destroy(); } bool Window::Create(const SDL_WindowFlags flags) { diff --git a/SakuraCore/src/Window.h b/SakuraCore/src/Window.h index 72584a3..38d88d8 100644 --- a/SakuraCore/src/Window.h +++ b/SakuraCore/src/Window.h @@ -9,7 +9,7 @@ namespace SakuraVNE { struct WindowData { - SDL_WindowFlags windowFlags; + SDL_WindowFlags windowFlags = 0; std::string title = "Window Title"; int width = 1280; int height = 720;