summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice <maurice.henke@protonmail.com>2021-04-17 03:44:11 +0200
committerMaurice <maurice.henke@protonmail.com>2021-04-17 03:44:11 +0200
commitea165cc53c85adac3c25f50ed10e122353c28287 (patch)
tree4b97356703e07c1d11e395871afecfd0ccac36f8
parent9bda9b156d9460f254cbbb673bcb735315ddd4be (diff)
ClearChecks() only if we're going to load new checks in
-rw-r--r--GameCube/source/seed.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/GameCube/source/seed.cpp b/GameCube/source/seed.cpp
index c8b65ca..cd74675 100644
--- a/GameCube/source/seed.cpp
+++ b/GameCube/source/seed.cpp
@@ -57,8 +57,7 @@ namespace mod::rando
{
using namespace libtp;
- this->ClearChecks();
-
+ // Find the index of this stage
uint8_t stageIDX;
for ( stageIDX = 0; stageIDX < sizeof( data::stage::allStages ) / sizeof( data::stage::allStages[0] ); stageIDX++ )
{
@@ -71,10 +70,12 @@ namespace mod::rando
// Don't run if this isn't actually a new stage
if ( stageIDX != m_StageIDX )
{
+ this->ClearChecks();
+
this->LoadDZX( stageIDX );
this->LoadREL( stageIDX );
this->LoadSHOP( stageIDX );
-
+
// Save current stageIDX for next time
m_StageIDX = stageIDX;
}