Skip to content

Commit

Permalink
fix sub-struct label names
Browse files Browse the repository at this point in the history
  • Loading branch information
randomdude999 committed Jan 28, 2024
1 parent 1cf5ae1 commit 3239f75
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/asar/assembleblock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,12 @@ void assembleblock(const char * block, bool isspecialline)
realsnespos = 0;
realstartpos = 0;

setlabel(struct_name, snespos, static_struct);
if(in_sub_struct) {
string labelname = struct_parent + "." + struct_name;
setlabel(labelname, snespos, static_struct);
} else {
setlabel(struct_name, snespos, static_struct);
}

#undef ret_error_cleanup
#undef ret_error_params_cleanup
Expand Down

0 comments on commit 3239f75

Please sign in to comment.