Skip to content

Commit 29bdc33

Browse files
committed
Version adaptive
this will fit version above 4.23, even 5.0.0
1 parent 7725156 commit 29bdc33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/ROSIntegration/Classes/ROSIntegrationGameInstance.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ROSINTEGRATION_API UROSIntegrationGameInstance : public UGameInstance
4949
protected:
5050
void CheckROSBridgeHealth();
5151

52-
#if ENGINE_MINOR_VERSION > 23
52+
#if ENGINE_MINOR_VERSION > 23 || ENGINE_MAJOR_VERSION >4
5353
virtual void OnWorldTickStart(UWorld * World, ELevelTick TickType, float DeltaTime);
5454
#else
5555
virtual void OnWorldTickStart(ELevelTick TickType, float DeltaTime);

Source/ROSIntegration/Private/ROSIntegrationGameInstance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ void UROSIntegrationGameInstance::BeginDestroy()
192192
UE_LOG(LogROS, Display, TEXT("ROS Game Instance - begin destroy - done"));
193193
}
194194

195-
#if ENGINE_MINOR_VERSION > 23
195+
#if ENGINE_MINOR_VERSION > 23 || ENGINE_MAJOR_VERSION >4
196196
void UROSIntegrationGameInstance::OnWorldTickStart(UWorld * World, ELevelTick TickType, float DeltaTime)
197197
#else
198198
void UROSIntegrationGameInstance::OnWorldTickStart(ELevelTick TickType, float DeltaTime)

0 commit comments

Comments
 (0)