aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-05-30 00:50:14 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-05-30 00:50:14 +0200
commite31b9a32b591fce7964a9033912278e7dab9e2c4 (patch)
tree0cf48e800183fd5fd942991983a9715a5dd144ed
parentce73074792ab0b1ad7ae6ffdf33d5911f531ce22 (diff)
downloadhydra-dragonfire-e31b9a32b591fce7964a9033912278e7dab9e2c4.tar.xz
Fix readPointedThing
-rw-r--r--convert/read_static.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/convert/read_static.go b/convert/read_static.go
index 2f62473..3e7dc30 100644
--- a/convert/read_static.go
+++ b/convert/read_static.go
@@ -46,7 +46,7 @@ func readPointedThing(l *lua.LState, val lua.LValue, ptr *mt.PointedThing) {
}
id := l.GetField(val, "id")
- if id == lua.LNil {
+ if id != lua.LNil {
pt := &mt.PointedAO{}
readAOID(l, id, &(*pt).ID)
*ptr = pt