GUI: fix InvCheckbox not working at all

This commit is contained in:
tildearrow 2022-10-10 02:17:24 -05:00
parent 6a3def514a
commit 8c551afd83

View file

@ -494,7 +494,7 @@ bool FurnaceGUI::CWVSliderInt(const char* label, const ImVec2& size, int* v, int
bool FurnaceGUI::InvCheckbox(const char* label, bool* value) { bool FurnaceGUI::InvCheckbox(const char* label, bool* value) {
bool t=!(*value); bool t=!(*value);
if (ImGui::Checkbox(label,&t)) { if (ImGui::Checkbox(label,&t)) {
*value=t; *value=!t;
return true; return true;
} }
return false; return false;