Skip to content

Commit

Permalink
UObjectHook: Fix FName::ToString call crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Oct 22, 2023
1 parent 1c1294b commit 3c2bc70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mods/UObjectHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void UObjectHook::on_draw_ui() {

if (ImGui::TreeNode("Objects by class")) {
for (auto& [uclass, objects] : m_objects_by_class) {
const auto uclass_name = utility::narrow(uclass->get_full_name());
const auto uclass_name = utility::narrow(m_meta_objects[uclass]->full_name);

if (ImGui::TreeNode(uclass_name.data())) {
for (auto& object : objects) {
Expand Down

0 comments on commit 3c2bc70

Please sign in to comment.