From e86964e5b77e7cc2ce36429aae04737ad07f9ef5 Mon Sep 17 00:00:00 2001 From: Xiao Qi Date: Tue, 22 Nov 2022 02:06:13 +0800 Subject: [PATCH] (no branch): Added nullptr return when checking for GetMainCameraComponent --- SHADE_Engine/src/Camera/SHCameraDirector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/SHADE_Engine/src/Camera/SHCameraDirector.cpp b/SHADE_Engine/src/Camera/SHCameraDirector.cpp index ec539fa1..d5ea3fd8 100644 --- a/SHADE_Engine/src/Camera/SHCameraDirector.cpp +++ b/SHADE_Engine/src/Camera/SHCameraDirector.cpp @@ -43,6 +43,7 @@ namespace SHADE if (!camComponent) { SHLOG_WARNING("Camera Director warning: Entity does not have a camera"); + return nullptr; } }