Skip to content

Commit

Permalink
Fix oversight that caused Sirena to crash when past first shine
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMKW committed Jul 9, 2024
1 parent 844b763 commit b8db36a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/BetterSMS/area.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,21 @@ namespace BetterSMS {
}

void addScenario(s32 scenarioID, s32 scenarioNameID) {
for (const s32 &id : mScenarioIDs) {
if (id == scenarioID) {
return;
}
}
mScenarioIDs.push_back(scenarioID);
mScenarioNameIDs.push_back(scenarioNameID);
}

void addExScenario(s32 exScenarioID, s32 exScenarioNameID) {
for (const s32 &id : mScenarioIDs) {
if (id == exScenarioID) {
return;
}
}
mExScenarioIDs.push_back(exScenarioID);
mExScenarioNameIDs.push_back(exScenarioNameID);
}
Expand Down

0 comments on commit b8db36a

Please sign in to comment.