From e0c89e1f28dd6db9f83c0ab0d166a9ea50a5aca9 Mon Sep 17 00:00:00 2001 From: chaosratel <138471433+kiffpuppygames@users.noreply.github.com> Date: Mon, 2 Nov 2026 19:12:12 +0000 Subject: [PATCH] fix: remove TESObjectREFR::IsInSpaceship, which held GetSpaceship's id IsInSpaceship{ 119881 } duplicated GetSpaceship{ 119881 }. In Starfield 1.16.244 (and 1.15.222) 119881 is GetSpaceship, which returns the ship reference or null; no separate IsInSpaceship function was found in the executable. The game's IsInSpaceship script function (66667) and condition function (65625) call 119881 with true and test the result for null, so a caller can use GetSpaceship() != nullptr. Nothing in CommonLibSF uses the id. --- include/RE/IDs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/RE/IDs.h b/include/RE/IDs.h index 7d58f19..ed83764 100644 --- a/include/RE/IDs.h +++ b/include/RE/IDs.h @@ -2567,7 +2567,6 @@ namespace RE::ID inline constexpr REL::ID HasKeyword{ 42794 }; inline constexpr REL::ID IsCrimeToActivate{ 0 }; // 106755 inline constexpr REL::ID IsInSpace{ 63482 }; - inline constexpr REL::ID IsInSpaceship{ 119881 }; inline constexpr REL::ID IsObjectEquipped{ 0 }; // 106991 inline constexpr REL::ID IsSpaceshipDocked{ 120230 }; inline constexpr REL::ID IsSpaceshipLanded{ 119909 };