mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
minimize extra dv::value copies
This commit is contained in:
parent
bd176f24e1
commit
3953583605
14 changed files with 29 additions and 26 deletions
|
|
@ -225,7 +225,7 @@ static void read_anim_file(
|
|||
if (auto found = root.at("frames")) {
|
||||
auto& frameArr = *found;
|
||||
for (size_t i = 0; i < frameArr.size(); i++) {
|
||||
auto currentFrame = frameArr[i];
|
||||
const auto& currentFrame = frameArr[i];
|
||||
|
||||
frameName = currentFrame[0].asString();
|
||||
if (currentFrame.size() > 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue