From e28808ad39c06face030322f103e0f99b32cc59d Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Fri, 23 Jan 2026 21:44:10 -0500 Subject: [PATCH] Fix tww_class_to_cpp not working for pyghidra --- docs/tww_class_to_cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tww_class_to_cpp.py b/docs/tww_class_to_cpp.py index 7d6b7918e..dd0b67f28 100644 --- a/docs/tww_class_to_cpp.py +++ b/docs/tww_class_to_cpp.py @@ -57,7 +57,7 @@ undefined_member_name_prefix = "field_0x" # undefined_member_name_prefix = "m" out_lines = [] -for i in range (struct.numComponents): +for i in range (struct.getNumComponents()): data_type = str(struct.getComponent(i).getDataType().getName()) offset = struct.getComponent(i).getOffset() hex_offset_string = str("%0*X" % (offset_pad_size, offset))