diff --git a/src/Gvas/File.cpp b/src/Gvas/File.cpp index 1146d8b..a4fb2b1 100644 --- a/src/Gvas/File.cpp +++ b/src/Gvas/File.cpp @@ -227,9 +227,7 @@ File::loadData() { _customFormatData = Containers::Array{custom_format_data_size}; - for(std::uint32_t i = 0; i < custom_format_data_size; i++) { - CustomFormatDataEntry entry; - + for(auto& entry : _customFormatData) { if(!reader.readStaticArray(entry.id) || !reader.readInt32(entry.value)) { @@ -237,8 +235,6 @@ File::loadData() { LOG_ERROR(_lastError); return; } - - _customFormatData[i] = std::move(entry); } if(!reader.readUEString(_saveType)) {