Skip to content

Commit b013c6a

Browse files
authored
Merge pull request #1082 from UE4SS-RE/live-view-array-fix
fix(LiveView): Crash on accessing arrays
2 parents 2c4cc53 + f2d15ff commit b013c6a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-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{};

assets/Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ Corporalwill123
350350

351351
Fixed crash on warning in dumpers and generators ([UE4SS #976](https://github.com/UE4SS-RE/RE-UE4SS/pull/976))
352352

353+
Fixed crash on expanding arrays ([UE4SS #1082](https://github.com/UE4SS-RE/RE-UE4SS/pull/1082))
354+
353355
### UHT Dumper
354356
Fix SetupAttachment implementations randomly changing order ([UE4SS #606](https://github.com/UE4SS-RE/RE-UE4SS/pull/606)) - Buckminsterfullerene
355357

0 commit comments

Comments
 (0)