mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
Explicitly clears the entire ItemLocations array. (#3820)
This commit is contained in:
parent
1669393277
commit
63413e8159
3 changed files with 8 additions and 0 deletions
|
@ -226,6 +226,12 @@ std::vector<RandomizerCheck> Context::GetLocations(const std::vector<RandomizerC
|
|||
return locationsInCategory;
|
||||
}
|
||||
|
||||
void Context::ClearItemLocations() {
|
||||
for (int i = 0; i < itemLocationTable.size(); i++) {
|
||||
GetItemLocation(static_cast<RandomizerCheck>(i))->ResetVariables();
|
||||
}
|
||||
}
|
||||
|
||||
void Context::ItemReset() {
|
||||
for (const RandomizerCheck il : allLocations) {
|
||||
GetItemLocation(il)->ResetVariables();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue