TWP: Fix unnecessary object copies can affect performance.

Coverity CID 1540508
This commit is contained in:
scemino 2024-04-06 14:14:33 +02:00
parent 79d40d5ac4
commit 2665b83b33

View File

@ -70,7 +70,7 @@ static SQInteger actorSound(HSQUIRRELVM v) {
}
}
Common::SharedPtr<Trigger> trigger(new SoundTrigger(sounds, obj->getId()));
Common::SharedPtr<Trigger> trigger(new SoundTrigger(Common::move(sounds), obj->getId()));
obj->_triggers[trigNum] = trigger;
}
}