From 2439a34f2b672b18fea742dcb5d722e26067e005 Mon Sep 17 00:00:00 2001 From: MrScautHD <65916181+MrScautHD@users.noreply.github.com> Date: Sat, 19 Aug 2023 22:43:26 +0200 Subject: [PATCH] Update Window.cs --- Raylib-cs/types/Window.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Raylib-cs/types/Window.cs b/Raylib-cs/types/Window.cs index cdaaf9b..5191e0a 100644 --- a/Raylib-cs/types/Window.cs +++ b/Raylib-cs/types/Window.cs @@ -16,7 +16,8 @@ public class Window : IDisposable /// /// Initializes the object if it is not ready. /// - public static Window Instance(int width, int height, string title) { + public static Window Instance(int width, int height, string title) + { return _instance ?? new Window(width, height, title); }