mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
TWP: Fix unnecessary object copies can affect performance.
Coverity CID 1540508
This commit is contained in:
parent
79d40d5ac4
commit
2665b83b33
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user