Skip to content

Commit

Permalink
perf(skymp5-server): skip ACTI and FURN objects in AttachSaveStorage (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Jan 10, 2025
1 parent 6289fab commit 7ac8f8b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions skymp5-server/cpp/server_guest_lib/PartOne.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,15 @@ void PartOne::AttachSaveStorage(std::shared_ptr<ISaveStorage> saveStorage)
lookupRes.rec->GetType().ToString());
return;
}
if (lookupRes.rec &&
(lookupRes.rec->GetType() == "ACTI" ||
lookupRes.rec->GetType() == "FURN")) {
pImpl->logger->info("Skipping FF object {} (type is {}), will likely "
"overwrite at some point",
changeForm.formDesc.ToString(),
lookupRes.rec->GetType().ToString());
return;
}
}

n++;
Expand Down

0 comments on commit 7ac8f8b

Please sign in to comment.