diff --git a/unity/native_src/Src/CppObjectMapper.cpp b/unity/native_src/Src/CppObjectMapper.cpp index 308e721a80..d974405e59 100644 --- a/unity/native_src/Src/CppObjectMapper.cpp +++ b/unity/native_src/Src/CppObjectMapper.cpp @@ -206,7 +206,7 @@ v8::Local FCppObjectMapper::GetTemplateOfClass(v8::Isolate Template->InstanceTemplate()->SetInternalFieldCount(4); JSPropertyInfo* PropertyInfo = ClassDefinition->Properties; - while (PropertyInfo && PropertyInfo->Name && PropertyInfo->Getter) + while (PropertyInfo && PropertyInfo->Name) { v8::PropertyAttribute PropertyAttribute = v8::DontDelete; if (!PropertyInfo->Setter) @@ -224,7 +224,7 @@ v8::Local FCppObjectMapper::GetTemplateOfClass(v8::Isolate } PropertyInfo = ClassDefinition->Variables; - while (PropertyInfo && PropertyInfo->Name && PropertyInfo->Getter) + while (PropertyInfo && PropertyInfo->Name) { v8::PropertyAttribute PropertyAttribute = v8::DontDelete; if (!PropertyInfo->Setter)