Fixes crash (#1798)

This commit is contained in:
RaelCappra 2022-10-19 23:06:06 -03:00 committed by GitHub
parent f300c02b63
commit 30c66439a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -563,7 +563,7 @@ void Draw_ItemsSkills(){
ResetTrailLength("gTrailDuration", 4); ResetTrailLength("gTrailDuration", 4);
UIWidgets::EnhancementCheckbox("Swords use separate colors", "gSeperateSwords"); UIWidgets::EnhancementCheckbox("Swords use separate colors", "gSeperateSwords");
if (CVar_GetS32("gSeperateSwords", 0) && ImGui::CollapsingHeader("Individual Sword Colors")) { if (CVar_GetS32("gSeperateSwords", 0) && ImGui::CollapsingHeader("Individual Sword Colors")) {
if (ImGui::BeginTable("tabletrailswords", 2, FlagsTable)) { if (ImGui::BeginTable("tabletrailswords", 5, FlagsTable)) {
ImGui::TableSetupColumn("Kokiri Sword", FlagsCell, TablesCellsWidth / 2); ImGui::TableSetupColumn("Kokiri Sword", FlagsCell, TablesCellsWidth / 2);
ImGui::TableSetupColumn("Master Sword", FlagsCell, TablesCellsWidth / 2); ImGui::TableSetupColumn("Master Sword", FlagsCell, TablesCellsWidth / 2);
ImGui::TableSetupColumn("Biggoron Sword", FlagsCell, TablesCellsWidth / 2); ImGui::TableSetupColumn("Biggoron Sword", FlagsCell, TablesCellsWidth / 2);