Skip to content

Commit f4a2b68

Browse files
authored
fix(contestant.cpp): add missing memoryUsed.clear()
fix: add missing memoryUsed.clear()
1 parent 962d29e commit f4a2b68

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/core/contestant.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ void Contestant::readFromStream(QDataStream &in) {
239239
// memoryUsed 之前存储为 int 三维数组,现在改为了 qint64,因此先读取旧结构,再逐层转换
240240
QList<QList<QList<int>>> oldMemoryUsed;
241241
in >> oldMemoryUsed;
242+
memoryUsed.clear();
242243
for (const auto &l1 : oldMemoryUsed) {
243244
QList<QList<qint64>> newL1;
244245
for (const auto &l2 : l1) {

0 commit comments

Comments
 (0)