Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Dumper/Generator/Public/Managers/StructManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,17 @@ class StructManager

static inline StructInfoHandle GetInfo(const UEStruct Struct)
{
static StructInfo Invalid{ .Name = static_cast<uint32>(HashStringTableIndex::InvalidIndex) };

if (!Struct)
return {};
return Invalid;

auto It = StructInfoOverrides.find(Struct.GetIndex());

return StructInfoOverrides.at(Struct.GetIndex());
if (It != StructInfoOverrides.end()) {
return It->second;
}
return Invalid;
}

static inline bool IsStructCyclicWithPackage(int32 StructIndex, int32 PackageIndex)
Expand Down