From 30e6c9a6183c72caedf9e27663081cac71ead2c4 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 3 Feb 2026 08:44:47 +0100 Subject: [PATCH] bug on enums --- tools/enums.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/enums.go b/tools/enums.go index 47bffa1..bbda0df 100644 --- a/tools/enums.go +++ b/tools/enums.go @@ -124,6 +124,9 @@ func (d DataType) API() string { // API - Returns the API name of the data type } func (d DataType) String() string { // String - Returns the string name of the data type + if d < 0 { + return "" + } return Str[d] }