From 283479a28e0b6b219a971e135d83f93d92011462 Mon Sep 17 00:00:00 2001 From: TheGondos <103931250+TheGondos@users.noreply.github.com> Date: Thu, 21 Nov 2024 21:10:15 +0100 Subject: [PATCH] [Lua]Fix clbk_visualdestroyed not being called (#511) * [Lua]Fix clbk_visualdestroyed not being called * [D3D9]Fix missing include * [Lua]Add XRSound assets dependency --- OVP/D3D9Client/D3D9Util.cpp | 1 + Src/Module/LuaScript/LuaInterpreter/CMakeLists.txt | 1 + Src/Vessel/ScriptVessel/ScriptVessel.cpp | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OVP/D3D9Client/D3D9Util.cpp b/OVP/D3D9Client/D3D9Util.cpp index 361eac406..0f9904d1e 100644 --- a/OVP/D3D9Client/D3D9Util.cpp +++ b/OVP/D3D9Client/D3D9Util.cpp @@ -19,6 +19,7 @@ #include #include #include +#include extern D3D9Client* g_client; extern unordered_map MeshMap; diff --git a/Src/Module/LuaScript/LuaInterpreter/CMakeLists.txt b/Src/Module/LuaScript/LuaInterpreter/CMakeLists.txt index 1f187a051..21c3f49ea 100644 --- a/Src/Module/LuaScript/LuaInterpreter/CMakeLists.txt +++ b/Src/Module/LuaScript/LuaInterpreter/CMakeLists.txt @@ -30,6 +30,7 @@ add_dependencies(LuaInterpreter D3D9Client D3D9Client_Interface XRSound_lib + XRSound_assets ) set_target_properties(LuaInterpreter diff --git a/Src/Vessel/ScriptVessel/ScriptVessel.cpp b/Src/Vessel/ScriptVessel/ScriptVessel.cpp index 517b9eb8e..4bc426cca 100644 --- a/Src/Vessel/ScriptVessel/ScriptVessel.cpp +++ b/Src/Vessel/ScriptVessel/ScriptVessel.cpp @@ -86,7 +86,7 @@ const char *CLBKNAME[NCLBK] = { "panelredrawevent", "loadVC", "visualcreated", - "visualdestroyes", + "visualdestroyed", "VCmouseevent", "VCredrawevent", "drawHUD",