Use reference to stats, not a pointer

This was some weird nonstandard stuff stolen from sphia(1).