diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-04-10 03:02:25 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-04-10 03:02:25 -0400 |
commit | 9a59d9d8cbc77e14a85664e23a02b883eb52c2a1 (patch) | |
tree | e94dd1f38a20fa2c87652e5a3c58101c6e2b651f /src/texec/worldbuilder.go | |
parent | 449fc06b72adf56d3b960310dc9e012145ad9ae4 (diff) |
Fixes for structs and enums
Diffstat (limited to 'src/texec/worldbuilder.go')
-rw-r--r-- | src/texec/worldbuilder.go | 3 |
1 files changed, 2 insertions, 1 deletions
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++ { |