Fix returned index of waves and pressure points

Fixing returned index of waves and pressure points, vector is 0 based.

It was returning the vector size().