Skip to content

Commit 1ae49bb

Browse files
committed
Use SaveManager to initialize save data
1 parent a0bf76b commit 1ae49bb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

SWR_AP_Client/SWR.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,7 @@ namespace SWRGame
433433
{
434434
// Reset values of progressive/stackable items (except circuit pass and course unlocks)
435435
// AP will send items on connect so we will recalculate from the base values
436-
swrSaveData->pitDroids = 1;
437-
memset(&swrSaveData->parts, 0, 7);
436+
saveManager.InitializeSaveData();
438437

439438
Log("Save data initialized");
440439
}

SWR_AP_Client/SWR.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ namespace SWRGame
5959
SWR_PodPartTable apShopData;
6060

6161
SWR_SaveData* swrSaveData;
62+
SWRMemTools::SaveManager saveManager(reinterpret_cast<SWRMemTools::SaveData*>(swrSaveData));
6263

6364
std::string fullSeedName = "";
6465
std::string versionString = "";

0 commit comments

Comments
 (0)