Skip to content

Commit fc5b6f5

Browse files
committed
resize is needed not reserve
1 parent f907b99 commit fc5b6f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fd_integration/partial_state.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class PR2State : public StateInterface {
1616
std::vector<int> vars; // values for vars
1717
std::vector< std::pair<int,int> > * _varvals = NULL; // varval pairs for partial states
1818
void _allocate(int size) {
19-
vars.reserve(size);
19+
vars.resize(size);
2020
}
2121
void _deallocate() {}
2222
// void _copy_buffer_from_state(const PR2State &state);

0 commit comments

Comments
 (0)