mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-25 12:00:31 +01:00
SetFastData: Move the ScriptVariable instead of copying it
This commit is contained in:
1 file changed
+1
-1
@@ -1815,7 +1815,7 @@ void ScriptVM::SetFastData(ScriptVariable *data, int dataSize)
|
||||
fastEvent.dataSize = dataSize;
|
||||
|
||||
for (int i = 0; i < dataSize; i++) {
|
||||
fastEvent.data[i] = data[i];
|
||||
fastEvent.data[i] = std::move(data[i]);
|
||||
}
|
||||
|
||||
m_pOldData = fastEvent.data;
|
||||
|
||||
Reference in new issue
Block a user