d2r2: fix missing function types on functions returning void

This commit is contained in:
Ryan Fleury
2026-05-09 12:38:08 -07:00
parent d59d6a21f0
commit a16716eff7
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -3381,7 +3381,7 @@ d2r2_convert(Arena *arena, D2R2_ConvertParams *params)
//- rjf: unpack type
//
RDIM_Type *type = 0;
if(type_attrib != &dw2_attrib_nil)
if(type_attrib != &dw2_attrib_nil || tag.kind == DW_TagKind_SubProgram)
{
// rjf: functions need to get their type info from themselves; the type attrib
// only references the return type. so, in that case, we'll use the procedure's