From f4a2b68579469cf95f775c27309a457bacbf6780 Mon Sep 17 00:00:00 2001 From: ZnPdCo <66149312+ZnPdCo@users.noreply.github.com> Date: Fri, 10 Apr 2026 07:27:38 +0800 Subject: [PATCH] fix(contestant.cpp): add missing memoryUsed.clear() fix: add missing memoryUsed.clear() --- src/core/contestant.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/contestant.cpp b/src/core/contestant.cpp index d6112716..30beff9c 100644 --- a/src/core/contestant.cpp +++ b/src/core/contestant.cpp @@ -239,6 +239,7 @@ void Contestant::readFromStream(QDataStream &in) { // memoryUsed 之前存储为 int 三维数组,现在改为了 qint64,因此先读取旧结构,再逐层转换 QList>> oldMemoryUsed; in >> oldMemoryUsed; + memoryUsed.clear(); for (const auto &l1 : oldMemoryUsed) { QList> newL1; for (const auto &l2 : l1) {