diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index 6f639dca5..8180287d4 100644 --- a/src/hb-open-type-private.hh +++ b/src/hb-open-type-private.hh @@ -779,6 +779,12 @@ struct OffsetTo : Offset { unsigned int offset = *this; if (unlikely (!offset)) return Null(Type); + return StructAtOffset (base, offset); + } + inline Type& operator () (void *base) const + { + unsigned int offset = *this; + if (unlikely (!offset)) return Crap(Type); return StructAtOffset (base, offset); }