fix entrance rando validation missing edge cases (#3344)

This commit is contained in:
Adam Bird 2023-11-04 17:50:28 -04:00 committed by GitHub
parent 678578823f
commit 25f05e68b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1232,6 +1232,11 @@ int ShuffleAllEntrances() {
}
}
// Validate the world one last time to ensure all special conditions are still valid
if (!ValidateWorld(nullptr)) {
return ENTRANCE_SHUFFLE_FAILURE;
}
return ENTRANCE_SHUFFLE_SUCCESS;
}