From 0e7da0f1a8fe1d73509ddd172410c3f29386e465 Mon Sep 17 00:00:00 2001 From: chaoticgd <43898262+chaoticgd@users.noreply.github.com> Date: Sun, 5 Jan 2025 22:10:07 +0000 Subject: [PATCH] Debugger: Fix AST node ownership confusion bug --- pcsx2-qt/Debugger/SymbolTree/SymbolTreeModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2-qt/Debugger/SymbolTree/SymbolTreeModel.cpp b/pcsx2-qt/Debugger/SymbolTree/SymbolTreeModel.cpp index 1610a6040f798..c025acefdb624 100644 --- a/pcsx2-qt/Debugger/SymbolTree/SymbolTreeModel.cpp +++ b/pcsx2-qt/Debugger/SymbolTree/SymbolTreeModel.cpp @@ -460,8 +460,8 @@ std::vector> SymbolTreeModel::populateChildren( for (const ccc::ast::StructOrUnion::FlatField& field : fields) { - if (symbol) - parent_handle = ccc::NodeHandle(*symbol, nullptr); + if (field.symbol) + parent_handle = ccc::NodeHandle(*field.symbol, nullptr); SymbolTreeLocation field_location = location.addOffset(field.base_offset + field.node->offset_bytes); if (field_location.type == SymbolTreeLocation::NONE)