diff --git a/hoomd/extern/gsd.c b/hoomd/extern/gsd.c index 24e70caebe..7c254fed7b 100644 --- a/hoomd/extern/gsd.c +++ b/hoomd/extern/gsd.c @@ -2012,7 +2012,7 @@ int gsd_flush(struct gsd_handle* handle) { handle->frame_index.data[i] = handle->frame_index - .data[handle->frame_index.size - handle->pending_index_entries]; + .data[handle->frame_index.size - handle->pending_index_entries + i]; } }