StateWrapper: Fix FIFO corruption on loading

This commit is contained in:
Connor McLaughlin 2019-09-28 16:21:09 +10:00
parent c32dc917ff
commit e11d98e5e0

View File

@ -145,6 +145,7 @@ public:
{ {
T* temp = new T[size]; T* temp = new T[size];
DoArray(temp, size); DoArray(temp, size);
data->Clear();
data->PushRange(temp, size); data->PushRange(temp, size);
delete[] temp; delete[] temp;
} }