mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 22:33:43 -07:00
Fixes
This commit is contained in:
parent
e509c80eea
commit
d5be7ef0bb
2 changed files with 9 additions and 1 deletions
|
@ -29,6 +29,14 @@ SaveManager::SaveManager() {
|
||||||
|
|
||||||
for (SaveFileMetaInfo& info : fileMetaInfo) {
|
for (SaveFileMetaInfo& info : fileMetaInfo) {
|
||||||
info.valid = false;
|
info.valid = false;
|
||||||
|
info.deaths = 0;
|
||||||
|
for (int i = 0; i < ARRAY_COUNT(info.playerName); i++) {
|
||||||
|
info.playerName[i] = '\0';
|
||||||
|
}
|
||||||
|
info.healthCapacity = 0;
|
||||||
|
info.questItems = 0;
|
||||||
|
info.defense = 0;
|
||||||
|
info.health = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -240,7 +240,7 @@ void FileChoose_UpdateMainMenu(GameState* thisx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->buttonIndex == FS_BTN_MAIN_COPY) {
|
if (this->buttonIndex == FS_BTN_MAIN_COPY) {
|
||||||
if (!Save_GetSaveMetaInfo(0)->valid && !Save_GetSaveMetaInfo(1)->valid && !Save_GetSaveMetaInfo(3)->valid) {
|
if (!Save_GetSaveMetaInfo(0)->valid && !Save_GetSaveMetaInfo(1)->valid && !Save_GetSaveMetaInfo(2)->valid) {
|
||||||
this->warningButtonIndex = this->buttonIndex;
|
this->warningButtonIndex = this->buttonIndex;
|
||||||
this->warningLabel = FS_WARNING_NO_FILE_COPY;
|
this->warningLabel = FS_WARNING_NO_FILE_COPY;
|
||||||
this->emptyFileTextAlpha = 255;
|
this->emptyFileTextAlpha = 255;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue