summaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.cpp b/ui.cpp
index 8a292c7..7b5128b 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -947,7 +947,7 @@ UI::Modal::Modal(UI* ui, Element* parent, const char* text):
UI::Rect UI::Modal::layout(const Rect& avail) {
Rect r = avail;
- if (pos[0] && pos[1]) {
+ if (pos[0] || pos[1]) {
r.x = pos[0];
r.y = pos[1];
}