helpers: Fix bug with heap corruption in loadObjects()
helpers: Fix bug with heap corruption in loadObjects()

If-statements had an off-by-one error causing heap corruption for line elements and points.

LUGGPublic/CG_Labs,LUGGPublic/CG_Labs