mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-23 01:42:19 -05:00
Merge pull request #3408 from leggettc18/develop-rando-bugfix
Fixes a potential crash with saves made on older commit.
This commit is contained in:
commit
3b5497cee3
@ -231,9 +231,11 @@ void SaveManager::LoadRandomizerVersion2() {
|
|||||||
SaveManager::Instance->LoadStruct("", [&]() {
|
SaveManager::Instance->LoadStruct("", [&]() {
|
||||||
RandomizerCheck rc = RC_UNKNOWN_CHECK;
|
RandomizerCheck rc = RC_UNKNOWN_CHECK;
|
||||||
SaveManager::Instance->LoadData("check", rc);
|
SaveManager::Instance->LoadData("check", rc);
|
||||||
std::string hintText;
|
if (rc != RC_UNKNOWN_CHECK) {
|
||||||
SaveManager::Instance->LoadData("hintText", hintText);
|
std::string hintText;
|
||||||
randoContext->AddHint(RandomizerHintKey(rc - RC_COLOSSUS_GOSSIP_STONE + 1), Text(hintText), RC_UNKNOWN_CHECK, HINT_TYPE_STATIC, Text());
|
SaveManager::Instance->LoadData("hintText", hintText);
|
||||||
|
randoContext->AddHint(RandomizerHintKey(rc - RC_COLOSSUS_GOSSIP_STONE + 1), Text(hintText), RC_UNKNOWN_CHECK, HINT_TYPE_STATIC, Text());
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user