From 55689228bfa91b8add95a62604d8b09fad35fa92 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 12 Sep 2022 00:12:41 +0200 Subject: [PATCH] Attempt to fix crash when instantiating Core alone but this is definitely not enough --- BBGE/Core.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BBGE/Core.cpp b/BBGE/Core.cpp index 25b473c..68fc1c4 100644 --- a/BBGE/Core.cpp +++ b/BBGE/Core.cpp @@ -1155,7 +1155,8 @@ void Core::run(float runTime) if (particleManager) particleManager->update(dt); - sound->update(dt); + if(sound) + sound->update(dt); onUpdate(dt);