diff --git a/Source/UnrealEnginePython/Private/UEPyModule.cpp b/Source/UnrealEnginePython/Private/UEPyModule.cpp index 07e778f22..e89ccc9f6 100644 --- a/Source/UnrealEnginePython/Private/UEPyModule.cpp +++ b/Source/UnrealEnginePython/Private/UEPyModule.cpp @@ -3195,7 +3195,7 @@ UFunction *unreal_engine_add_function(UClass *u_class, char *name, PyObject *py_ prop_struct->Struct = TBaseStructure::Get(); prop = prop_struct; } -#if ENGINE_MINOR_VERSION > 17 +#if ENGINE_MINOR_VERSION > 18 else if ((PyTypeObject *)value == &ue_PyFQuatType) { UStructProperty *prop_struct = NewObject(function, UTF8_TO_TCHAR(p_name), RF_Public); @@ -3338,7 +3338,7 @@ UFunction *unreal_engine_add_function(UClass *u_class, char *name, PyObject *py_ prop_struct->Struct = TBaseStructure::Get(); prop = prop_struct; } -#if ENGINE_MINOR_VERSION > 17 +#if ENGINE_MINOR_VERSION > 18 else if ((PyTypeObject *)py_return_value == &ue_PyFQuatType) { UStructProperty *prop_struct = NewObject(function, UTF8_TO_TCHAR(p_name), RF_Public);