mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-04 07:57:11 +02:00
Various minor changes and fixes that were not pushed to the repository. Just random stuff.
This commit is contained in:
@ -1422,7 +1422,7 @@ void Core::EmitClientScriptData(Int32 player_id, const uint8_t * data, size_t si
|
||||
// Remember the current stack size
|
||||
const StackGuard sg;
|
||||
// Create a protected instance of a buffer wrapper
|
||||
AutoDelete< SqBuffer > ad(new SqBuffer(std::move(b)));
|
||||
DeleteGuard< SqBuffer > ad(new SqBuffer(std::move(b)));
|
||||
// Transform the pointer into a script object
|
||||
PushVar< SqBuffer * >(DefaultVM::Get(), ad.Get());
|
||||
// The script took over the instance now
|
||||
|
Reference in New Issue
Block a user