Skip to content

Commit

Permalink
Debugger: Fix AST node ownership confusion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoticgd authored and lightningterror committed Jan 6, 2025
1 parent 4f7c8a7 commit 0e7da0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pcsx2-qt/Debugger/SymbolTree/SymbolTreeModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ std::vector<std::unique_ptr<SymbolTreeNode>> 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)
Expand Down

0 comments on commit 0e7da0f

Please sign in to comment.