Check base objects on the first OnCellEnter pass to avoid mixing up with ESP-added refs
This commit is contained in:
parent
65efaad0f5
commit
3c2a2343aa
Binary file not shown.
@ -6,7 +6,7 @@ message("Using toolchain file ${CMAKE_TOOLCHAIN_FILE}.")
|
|||||||
########################################################################################################################
|
########################################################################################################################
|
||||||
project(
|
project(
|
||||||
ArtifactTracker
|
ArtifactTracker
|
||||||
VERSION 1.0.1
|
VERSION 1.0.2
|
||||||
DESCRIPTION "Artifact Tracker"
|
DESCRIPTION "Artifact Tracker"
|
||||||
LANGUAGES CXX)
|
LANGUAGES CXX)
|
||||||
set(CMAKE_CXX_STANDARD 23)
|
set(CMAKE_CXX_STANDARD 23)
|
||||||
|
@ -333,7 +333,7 @@ namespace ArtifactTracker
|
|||||||
|
|
||||||
g_persistentStorage->ForEachForm([&](RE::TESForm& a_form) {
|
g_persistentStorage->ForEachForm([&](RE::TESForm& a_form) {
|
||||||
const auto refr = a_form.As<RE::TESObjectREFR>();
|
const auto refr = a_form.As<RE::TESObjectREFR>();
|
||||||
if (refr && refr->GetParentCell()->formID == a_formID) {
|
if (refr && refr->GetBaseObject() == g_cellContainer && refr->GetParentCell()->formID == a_formID) {
|
||||||
cellStorage = refr;
|
cellStorage = refr;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
|
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
|
||||||
"name": "artifact-tracker",
|
"name": "artifact-tracker",
|
||||||
"version-string": "1.0.1",
|
"version-string": "1.0.2",
|
||||||
"port-version": 0,
|
"port-version": 0,
|
||||||
"description": "Artifact Tracker",
|
"description": "Artifact Tracker",
|
||||||
"homepage": "https://eddoursul.win/mods/artifact-tracker/",
|
"homepage": "https://eddoursul.win/mods/artifact-tracker/",
|
||||||
|
Loading…
Reference in New Issue
Block a user