From: Elias Fleckenstein Date: Sun, 29 May 2022 22:50:14 +0000 (+0200) Subject: Fix readPointedThing X-Git-Tag: v0.1.0~6 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=e31b9a32b591fce7964a9033912278e7dab9e2c4;p=hydra-dragonfire.git Fix readPointedThing --- 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