From 23d2572941a2eef318c97db253ca27a6082f38d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Tue, 29 Dec 2020 17:34:09 +0100 Subject: [PATCH] Fixed crash when closing window --- GlitchyEngine/src/Platform/Windows/WindowsWindow.bf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf b/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf index 052061d..15c7669 100644 --- a/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf +++ b/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf @@ -424,10 +424,10 @@ namespace GlitchyEngine // Window closing case WM_CLOSE: { - PostQuitMessage(0); - var event = scope WindowCloseEvent(); window._eventCallback(event); + + return 0; } }