From 5bf9b7e08f64334d54acd3c9adc6492c248f884b Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Wed, 10 May 2023 20:43:30 +0200 Subject: [PATCH] fix a build error where engine versions are < 5.2 --- .../Private/SenseGlove/GameFramework/SGPlayerController.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPlayerController.cpp b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPlayerController.cpp index a0f1b588..04f09ab2 100644 --- a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPlayerController.cpp +++ b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPlayerController.cpp @@ -35,7 +35,12 @@ #include "SenseGlove/GameFramework/SGPlayerController.h" +#if ENGINE_MAJOR_VERSION > 5 || ( ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 2 ) #include "Engine/TimerHandle.h" +#else /* ENGINE_MAJOR_VERSION > 5 || ( ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 2 ) */ +#include "Engine/EngineTypes.h" +#endif /* ENGINE_MAJOR_VERSION > 5 || ( ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 2 ) */ + #include "TimerManager.h" #include "SenseGlove/Components/SGGrabComponent.h"