diff --git a/src/graphics/ui/elements/CheckBox.cpp b/src/graphics/ui/elements/CheckBox.cpp index 22741e45d..8694dc085 100644 --- a/src/graphics/ui/elements/CheckBox.cpp +++ b/src/graphics/ui/elements/CheckBox.cpp @@ -25,7 +25,8 @@ void CheckBox::draw(const DrawContext& pctx, const Assets&) { batch->rect(pos.x, pos.y, size.x, size.y); } -void CheckBox::mouseRelease(int, int) { +void CheckBox::mouseRelease(int x, int y) { + UINode::mouseRelease(x, y); checked = !checked; if (consumer) { consumer(checked);