Skip to content

Commit 3a2c57c

Browse files
authored
decomp3: timer, display-h, decomp-h, file-io, pad (#3332)
1 parent b130c2f commit 3a2c57c

File tree

22 files changed

+3522
-218
lines changed

22 files changed

+3522
-218
lines changed

common/type_system/TypeSystem.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,6 +2147,12 @@ std::optional<std::string> find_best_field_in_structure(const TypeSystem& ts,
21472147
} else {
21482148
int rel_offset = offset - field.offset();
21492149
// array case (and array encompasses what we want)
2150+
ASSERT_MSG(
2151+
type->get_size_in_memory() > 0,
2152+
fmt::format(
2153+
"In type {}, type size was 0 for array field {} of type {}, check that the type "
2154+
"is fully defined.",
2155+
st->get_name(), field.name(), field.type().print()));
21502156
int array_idx = rel_offset / type->get_size_in_memory();
21512157
if (!field.is_inline() &&
21522158
field.offset() + field.array_size() * type->get_load_size() > offset) {

0 commit comments

Comments
 (0)