diff --git a/H2Codez/H2Guerilla/H2Guerilla.cpp b/H2Codez/H2Guerilla/H2Guerilla.cpp index 7708da2..8554880 100644 --- a/H2Codez/H2Guerilla/H2Guerilla.cpp +++ b/H2Codez/H2Guerilla/H2Guerilla.cpp @@ -223,6 +223,17 @@ static bool __fastcall field_information__should_hide(field_information *thisptr { ASSERT_CHECK(thisptr); ASSERT_CHECK(thisptr->field); + + /* + Hide blocks that can't be used + */ + if (thisptr->field->type == tag_field::block) + { + auto block_def = reinterpret_cast(thisptr->field->defintion); + if (block_def->max_count == 0) + return true; + } + if (show_hidden_fields && conf.getBoolean("show_all_fields", false)) return false;