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); }