summaryrefslogtreecommitdiff
path: root/src/texec/worldbuilder.go
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2021-11-23 12:58:46 -0500
committerKyle Gunger <kgunger12@gmail.com>2021-11-23 12:58:46 -0500
commit8fd930180e5d7a610117299bb9c48e28409d3106 (patch)
tree60ff00906cb23953335e719526bd3da8073fc6d5 /src/texec/worldbuilder.go
parent60dcc7c3c013a2492d8db1b04d28cb437921cced (diff)
[EVAL] Stubcode v2
Diffstat (limited to 'src/texec/worldbuilder.go')
-rw-r--r--src/texec/worldbuilder.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/texec/worldbuilder.go b/src/texec/worldbuilder.go
index d85f1ac..023c730 100644
--- a/src/texec/worldbuilder.go
+++ b/src/texec/worldbuilder.go
@@ -37,10 +37,10 @@ import (
// Returns generated value and general "type" of value (string, number)
func evalPreLiteral(n tparse.Node) string {
- r := tparse.StringAsRunes(n.Data.Data)
+ r := []rune(n.Data.Data)
l := len(r)
if r[0] == '"' || r[0] == '\'' {
- return tparse.RunesAsString(r[1:l - 1])
+ return string(r[1:l - 1])
}
return ""
}