Skip to content

Commit

Permalink
pls coverity pls
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 2, 2020
1 parent daca662 commit baa2c65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Etterna/Models/Songs/SongCacheIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1278,10 +1278,10 @@ SongCacheIndex::SongFromStatement(Song* song, SQLite::Statement& query)
serialized_notedata_blob.getBytes() / sizeof(NoteInfo);
// sqlite gives us null when the length is 0
if (serialized_notedata_data != nullptr)
pNewNotes->serializenotedatacache = std::vector(
pNewNotes->serializenotedatacache.assign(
serialized_notedata_data,
(const NoteInfo*)serialized_notedata_data +
serialized_notedata_size);
(const NoteInfo*)(serialized_notedata_data +
serialized_notedata_size));
song->AddSteps(pNewNotes);
}

Expand Down

0 comments on commit baa2c65

Please sign in to comment.