Sync cell storage after its creation
This commit is contained in:
parent
1455709755
commit
cca2fdafc1
Binary file not shown.
@ -222,7 +222,7 @@ namespace ArtifactTracker
|
||||
RE::TESObjectREFR* cellStorage = nullptr;
|
||||
|
||||
for (const auto& a_ref : cell->references) {
|
||||
if (a_ref.get()->GetBaseObject()->formID == g_cellContainer->formID) {
|
||||
if (a_ref.get()->GetBaseObject() == g_cellContainer) {
|
||||
cellStorage = a_ref.get();
|
||||
break;
|
||||
}
|
||||
@ -248,6 +248,7 @@ namespace ArtifactTracker
|
||||
g_persistentStorage->AddForm(cellStorage);
|
||||
g_persistentMap[cellStorage->formID] = cellStorage;
|
||||
ToggleHomeMode(cellStorage);
|
||||
SyncCellStorage();
|
||||
} else {
|
||||
SKSE::log::error("Failed to create cell storage in OnCellEnter");
|
||||
ToggleHomeMode(nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user