diff --git a/src/common/state_wrapper.h b/src/common/state_wrapper.h index d0a3cb4b7..c1e26f23b 100644 --- a/src/common/state_wrapper.h +++ b/src/common/state_wrapper.h @@ -145,6 +145,7 @@ public: { T* temp = new T[size]; DoArray(temp, size); + data->Clear(); data->PushRange(temp, size); delete[] temp; }