Normalize explicit campaign slot reads

This commit is contained in:
2026-07-05 11:06:01 +09:00
parent 5c9983b2d7
commit 6d17e86325
2 changed files with 28 additions and 1 deletions

View File

@@ -1298,7 +1298,7 @@ function readStoredCampaignState(slot?: number) {
}
function readStoredCampaignStateObject(slot?: number) {
const raw = tryStorage()?.getItem(slot ? campaignSaveSlotKey(slot) : campaignStorageKey);
const raw = tryStorage()?.getItem(slot === undefined ? campaignStorageKey : campaignSaveSlotKey(slot));
if (!raw) {
return undefined;
}