summaryrefslogtreecommitdiff
path: root/engine/UI/Void.go
diff options
context:
space:
mode:
Diffstat (limited to 'engine/UI/Void.go')
-rw-r--r--engine/UI/Void.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/UI/Void.go b/engine/UI/Void.go
index f167f30..61d83e8 100644
--- a/engine/UI/Void.go
+++ b/engine/UI/Void.go
@@ -15,6 +15,9 @@ type Void struct {
const VoidTypeName string = "void"
func (base *Void) Init(*Menu) {
+ if base.Weight == 0 {
+ base.Weight = 1
+ }
}
func (base *Void) Destroy() {