diff --git a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp index 8ad4e3f0b0..45c6ddd897 100644 --- a/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp +++ b/src/apps/debugger/user_interface/gui/team_window/VariablesView.cpp @@ -1428,7 +1428,10 @@ VariablesView::VariableTableModel::GetValueAt(void* object, int32 columnIndex, return true; case 2: { - Type* type = node->GetType(); + // use the type of the underlying value node, as it may + // be different from the initially assigned top level type + // due to casting + Type* type = node->NodeChild()->Node()->GetType(); if (type == NULL) return false;