Skip to content

Commit d8ebf79

Browse files
committed
fix(LiveView): Crash on accessing arrays
1 parent e71689d commit d8ebf79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UE4SS/src/GUI/LiveView.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,7 @@ namespace RC::GUI
22362236
}
22372237
else
22382238
{
2239-
property->ExportTextItem(property_text, container_ptr, container_ptr, static_cast<UObject*>(container), NULL);
2239+
property->ExportTextItem(property_text, container_ptr, container_ptr, container_type == ContainerType::Array ? nullptr : static_cast<UObject*>(container), NULL);
22402240
}
22412241
}
22422242
else if (auto as_array_property = CastField<FArrayProperty>(property);
@@ -2252,7 +2252,7 @@ namespace RC::GUI
22522252
}
22532253
else
22542254
{
2255-
property->ExportTextItem(property_text, container_ptr, container_ptr, static_cast<UObject*>(container), NULL);
2255+
property->ExportTextItem(property_text, container_ptr, container_ptr, container_type == ContainerType::Array ? nullptr : static_cast<UObject*>(container), NULL);
22562256
}
22572257

22582258
bool open_edit_value_popup{};

0 commit comments

Comments
 (0)