summaryrefslogtreecommitdiff
path: root/src/texec/worldbuilder.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/texec/worldbuilder.go')
-rw-r--r--src/texec/worldbuilder.go3
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++ {