From 3476ac9433bd3ba00fe00b0688dba1ad3403c31f Mon Sep 17 00:00:00 2001 From: Marius Petcu Date: Wed, 15 Dec 2021 19:21:41 +0200 Subject: [PATCH] Fix LuaHBuffer initialisation syntax --- fmod/src/fmod_extension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmod/src/fmod_extension.cpp b/fmod/src/fmod_extension.cpp index 1ecfd67..98cfa23 100644 --- a/fmod/src/fmod_extension.cpp +++ b/fmod/src/fmod_extension.cpp @@ -54,7 +54,7 @@ int FMODBridge_dmBuffer_GetBytes(FMODBridge_HBuffer buffer, void** bytes, uint32 } void FMODBridge_dmScript_PushBuffer(lua_State* L, FMODBridge_HBuffer buffer) { - dmScript::LuaHBuffer wrapper = { buffer, false }; + dmScript::LuaHBuffer wrapper = { buffer, dmScript::OWNER_C }; dmScript::PushBuffer(L, wrapper); }