From 74f8c15481da55fc8fe3dc5c5d9bb919b055af2f Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 11 Oct 2022 01:21:26 +0200 Subject: [PATCH] Add assert for recursive shutdown --- r5dev/core/dllmain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/r5dev/core/dllmain.cpp b/r5dev/core/dllmain.cpp index 75ba00a0..644e346b 100644 --- a/r5dev/core/dllmain.cpp +++ b/r5dev/core/dllmain.cpp @@ -64,6 +64,7 @@ void SDK_Init() void SDK_Shutdown() { static bool bShutDown = false; + assert(!bShutDown); if (bShutDown) { spdlog::error("Recursive shutdown!\n");