From 9a59d9d8cbc77e14a85664e23a02b883eb52c2a1 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sun, 10 Apr 2022 03:02:25 -0400 Subject: Fixes for structs and enums --- src/texec/worldbuilder.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/texec/worldbuilder.go') diff --git a/src/texec/worldbuilder.go b/src/texec/worldbuilder.go index 6a5fb33..69be803 100644 --- a/src/texec/worldbuilder.go +++ b/src/texec/worldbuilder.go @@ -99,7 +99,8 @@ func modDefStruct(n tparse.Node, m *TModule) { func modDefEnum(n tparse.Node, m *TModule) { name := n.Sub[0].Data.Data - t := getType(n.Sub[1].Sub[0]) + t := getType(n.Sub[1]) + fmt.Println(t) s, vs := modDefVars(n.Sub[2], t) out := TVariable{tEnum, make(VarMap)} for i := 0; i < len(s); i++ { -- cgit v1.2.3