Skip to content

Commit

Permalink
fix: InstancedStruct GetPtr crash on null struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Panakotta00 committed Oct 15, 2024
1 parent 79a99bc commit a29c4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/FicsItReflection/Public/FIRInstancedStruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct FICSITREFLECTION_API FFIRInstancedStruct {

template<typename T>
T* GetPtr() const {
if (!Struct->IsChildOf(TBaseStructure<T>::Get())) return nullptr;
if (!Struct && !Struct->IsChildOf(TBaseStructure<T>::Get())) return nullptr;
return &Get<T>();
}

Expand Down

0 comments on commit a29c4c6

Please sign in to comment.