diff --git a/include/RE/M/MenuControls.h b/include/RE/M/MenuControls.h index 0a45f710e..a4f9931d7 100644 --- a/include/RE/M/MenuControls.h +++ b/include/RE/M/MenuControls.h @@ -69,15 +69,25 @@ namespace RE MenuOpenHandler* menuOpenHandler; // 68 FavoritesHandler* favoritesHandler; // 70 ScreenshotHandler* screenshotHandler; // 78 - bool isProcessing; // 80 - bool beastForm; // 81 - bool remapMode; // 82 - std::uint8_t unk83; // 83 - std::uint32_t unk84; // 84 +#ifdef SKYRIMVR + std::uint64_t occlusionCullingToggleHandler; // 80 +#endif + bool isProcessing; // 80 + bool beastForm; // 81 + bool remapMode; // 82 + std::uint8_t unk83; // 83 + std::uint32_t unk84; // 84 private: KEEP_FOR_RE() }; static_assert(offsetof(MenuControls, handlers) == 0x18); - static_assert(offsetof(MenuControls, remapMode) == 0x82); + +#ifndef SKYRIMVR static_assert(sizeof(MenuControls) == 0x88); + static_assert(offsetof(MenuControls, remapMode) == 0x82); +#else + static_assert(offsetof(MenuControls, remapMode) == 0x8A); + static_assert(sizeof(MenuControls) == 0x90); +#endif + } diff --git a/src/RE/W/WorldSpaceMenu.cpp b/src/RE/W/WorldSpaceMenu.cpp index 2f23e549e..5b217aafd 100644 --- a/src/RE/W/WorldSpaceMenu.cpp +++ b/src/RE/W/WorldSpaceMenu.cpp @@ -12,7 +12,6 @@ namespace RE if (menuNode.get()->parent) { menuNode.get()->parent->DetachChild2(menuNode.get()); } - menuNode->DeleteThis(); menuNode.reset(); }