diff --git a/oscar/SleepLib/loader_plugins/resvent_loader.cpp b/oscar/SleepLib/loader_plugins/resvent_loader.cpp index 29102d26..e04ba152 100644 --- a/oscar/SleepLib/loader_plugins/resvent_loader.cpp +++ b/oscar/SleepLib/loader_plugins/resvent_loader.cpp @@ -332,7 +332,8 @@ struct ChunkData { QString ReadDescriptionName(QFile& f) { constexpr int kNameSize = 9; - std::array name; + QVector name(kNameSize); + const auto readed = f.read(name.data(), kNameSize - 1); Q_ASSERT(readed == kNameSize - 1);