From e31b9a32b591fce7964a9033912278e7dab9e2c4 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Mon, 30 May 2022 00:50:14 +0200 Subject: [PATCH] Fix readPointedThing --- convert/read_static.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.0